On Tuesday 15 December 2009 20:30:59 Rich Shepard wrote: > I'd appreciate your thoughts on whether I should keep my external drive > unmounted when not in use and mounting it prior to running > '/sbin/dirvish-expire' and '/sbin/dirvish-runall'. Is it also advisable > to have dirvish mail me a daily report that it ran and had no errors?
These both seem like personal choices that should be tailored to your use
case. I want my hourly snapshots to be easily accessible for restoring files,
so I keep my backup filesystem mounted read-only in between snapshots. (I have
a script like yours, but instead of using your mount and umount lines, I use
mount -o remount,rw to mount it read-write, and then mount -o remount,ro to
mount it read-only.)
I also set up a "post-server" script (runs once per vault, after the backup)
that checks the disk-free space on my backup drive and only notifies me if it's
above 90%. I take advantage of cron emailing all output, and I have every
other part of the cron job run quiet, so it only emails my user account if
it's above the 90% threshold (or if there's an error, which would cause
dirvish to have some output even if --quiet is given). If you're interested,
this is the shell code I use. It parses the output from df. There's probably a
better way but it works for me:
mount_point="/mnt/backup"
full_info=`df | grep $mount_point`
disk_free=${full_info%\%*} #cut off after (and including) the last % sign
disk_free=${disk_free##* } #cut off before (and including) the last space
[ $disk_free -gt 90 ] && echo "Notice: mount point $mount_point is
${disk_free}% full." 1>&2
> The error was because I took out the client: key from all default.conf
> files trying to follow Andy's statement that all he has in those files is
> the tree: key. So I just put in client: salmo in each one and that overcame
> this error.
Whoops, I wasn't clear enough on that... I have a client: directive in my
master.conf, which is the only reason I don't need it in the vault
default.conf files. You definitely need to define the allowed client somewhere.
If it's going to be the same for all vaults, then it's easiest to just have it
appear once in master.conf.
-Andy
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
