I have a shell script that i'll be running with a crontab. Basically I want to modify this so I can do daily backups for the last 3 days. I've seen examples where the last 7 days are backup. I just need the last 3 rolling days. I know I would have to do a separate script for the weekly schedule.
code:
rsync -avzh --delete XXXX@XXXXX:/home/XXXXX/source/ /$HOME/destination
Any help is greatly appreciated.