hybridBackup.go 783 B

1234567891011121314151617181920212223242526
  1. package hybridBackup
  2. import "log"
  3. /*
  4. Hybrid Backup
  5. This module handle backup functions from the drive with Hieracchy labeled as "backup"
  6. Backup modes suport in this module currently consists of
  7. Denote P drive as parent drive and B drive as backup drive.
  8. 1. Smart (smart):
  9. - Any new file created in P will be copied to B within 5 minutes
  10. - Any file removed in P will be delete from backup after 24 hours
  11. 2. Nightly (nightly):
  12. - The whole P drive will be copied to N drive every night
  13. 3. Append Only (append)
  14. - Any new file created in P will be copied to B within 5 minutes
  15. - No file will be removed from B unless drive is fulled (Similar to CCTV recorder)
  16. */
  17. func HandleBackupProcess(backupConfig *BackupConfig) error {
  18. log.Println(backupConfig)
  19. return nil
  20. }