On 15/04/2011 21:23, Hywel Mallett wrote: > I'm a happy tarsnap user, across several FreeBSD systems. However I > know I should really be backing up snapshots, particularly as I'm > including PostgreSQL data directories in the backup. I'm familiar > with snapshots, however, I've read the man page, seen the --snaptime > option, Googled for examples, but I'm still confused as to the best > was to do this. Does anyone have any examples of how they're backing > up using snapshots on a UFS filesystem? Here's a script I used to use for nightly tarsnap backups -- I've since switched to using ZFS. It uses the lockf(1) lock file to do double duty -- both to ensure that only a single instance of the backup process is running at any one time, and as the time reference for tarsnap's --snaptime option. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW
Attachment:
backupsnap-ufs.sh
Description: Bourne shell script
Attachment:
signature.asc
Description: OpenPGP digital signature