DragonFly BSD
DragonFly users List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Disabling snapshot symlinks during manual snapshot

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Apr 2010 10:34:39 -0700 (PDT)

:/Backup1/pfs/www-hot      /Backup1/www-5mbak/www-hot    null    rw
:         0       0
:/Backup1/pfs/@@-1:00005   454G   287G   168G    63%
: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

    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

: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

: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

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

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

					Matthew Dillon 

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]