Disabling snapshot symlinks during manual snapshot

Matthew Dillon dillon at apollo.backplane.com
Wed Apr 21 10:37:11 PDT 2010


:/Backup1/pfs/www-hot      /Backup1/www-5mbak/www-hot    null    rw
:         0       0
:
:/Backup1/pfs/@@-1:00005   454G   287G   168G    63%
:/Backup1/www-5mbak/www-hot
:
:Now I run cron every 5 mins to execute a script that rsyncs files from
:the main development server and then snapshot the pfs to
:/Backup1/www-5mbak

    Make sure your cron job runs the rsync under a lockf.  e.g.:

    */5 * * * *  lockf -kt 0 /root/adm/.lock1 rsync ....

    Otherwise any long syncs or other issues can cause rsyncs to build
    up.

:I shared /Backup1/www-5mbak read only using samba and the developers
:can now get 5mis backup of any file  for 2 days.

    I'm not I understand.  So the snapshots in this subdirectory are
    softlinks using absolute paths to the original directory with
    an @@ extension?  Otherwise they might not be able to access the
    snapshot.

:To give them a daily backup access the same way I guess i will have to
:configure a mirror and configure daily snapshots for them right?

    You can use the same mirror and just pick out or generate daily
    softlinks.  You don't need to configure another one.  I'm not
    entirely sure how you'd make sure the softlinks track the actual
    snapshots in terms of snapshot retirement as the hammer utility
    only tracks one snapshot directory.

:I might get rid of backuppc if I can store at least 2 years worth of
:Daily backups like this.

    You always want a backup on some other machine somewhere, no matter
    what.

:Is there any way to find the space used by a single PFS and the space
:used by its snapshots ?
:
:Thanks
:
:--Siju

    No, someone would have to write a feature in the hammer utility to
    calculate it.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Users mailing list