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