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

  • Stymied by a generous download quota

    All I want to do is run a simple Perl script. But... It requires Net::DNS. Fortunately, Net::DNS can be easily installed by using the CPAN…

  • Computing cost and elapsed time

    Okay, I admit that opening a file 14334 times to see if it has a line matching the current item may not be the most efficient thing to do. In…

  • Local countdown

    nathanj@pecan.local> 11:59pm [~/]: date Sat 31 Dec 2011 23:59:55 EST nathanj@pecan.local> 11:59pm [~/]: date Sat 31 Dec 2011 23:59:56 EST…

  • 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