Nathan (gemsling) wrote,
Nathan
gemsling

rsync.net – backups no longer untouched

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
Tags: rsync.net, tech
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments