Previous Entry Share Next Entry
rsync.net – backups no longer untouched
hdd
gemsling
I have finally set up rotating snapshots on my rsync.net backups. The cron job for the rotation is on a different machine to ensure it runs when my MacBook Pro is closed.

But for me, the most exciting thing is discovering a simple technique to see how old each backup is: just touch the directory after each backup!

Before

The directory never changed, so both the current backup and manually created snapshots showed the same unchanging lastmode timestamp:
drwx------   4 1124  1124   512 May 30  2007 pecan
drwx------   4 1124  1124   512 May 30  2007 pecan-20090621
drwx------   4 1124  1124   512 May 30  2007 pecan-20090713

After

Adding "ssh user@domain touch pecan" to my backup command means I see the date of each snapshot:
drwx------   4 1124  1124   512 Jul 20 07:10 pecan
drwx------   4 1124  1124   512 Jul 20 07:10 pecan.1
drwx------   4 1124  1124   512 Jul 19 11:24 pecan.2
drwx------   4 1124  1124   512 Jul 19 11:24 pecan.3

?

Log in

No account? Create an account