renaming/copying in the script
I've been using a cp argument in the scripts to move the last daily sync to a backup that rsync won't touch first, before doing the sync.
So there's the 'live' copy the sync will update, and a rolling one day old copy. The -f switch overwrites the daily-old without prompting. (eg automated with cron)
I do the same with a weekly, monthly or any other requirement. Just run the "monthly" script once a month, which cp's the current to a separate "month" copy.
Arguments in the cp can point the given archival copy anywhere, off site, on a removable device etc.
Now that you all got me thinking, I should just use a separate rsync for weekly, monthly etc as needed, rather than copying to an archive. It'll use a lot less overhead and I can dump the 'wait' I have to put between the cp and rsync to insure the cp completes before the rsync changes the source.
Duh, duh and duh. The only reason to use a cp would be to place the archive on a windows system, where rsync and ssh aren't welcome.
Thankfully all the backup solutions I've deployed are on Linux.
Funny how the obvious can sit there unseen, right in front of you basically indefinitely, until Chad writes an article about it. =D
Problem is the cp also just plain works(tm). A heck of a lot more inefficient...