I have hyperbackup running from source NAS to destination NAS with the below settings
- Backup type - Rsync
- Options - reserve backup file at destination
- With this i have a backup method that results in a file/fodler structure in the 2nd NAS, withut the hyperbackup proprietary format or tools
I have the below cronjob on source NAS via task schedule which deletes files on the destination NAS which are not present in source NAS.
rsync -avh --delete /path/to/source user@wan_ip:/path/to/destination
I want to modify the cron job so that it deletes files from destination which are not present on source and 1 week old. something like:
rsync -avh --delete(1 week old) /path/to/source user@wan_ip:/path/to/destination
Is there a way to do this?
The source and destination NAS both have multiple folders on which this Job has to run.