On 16 July 2010 07:37, JPH <[email protected]> wrote: > Why not useĀ some of the standard hooks in the dirvish.conf? > > pre-server pre-client post-client post-server > Check the dirvish docs: > http://www.dirvish.org/FAQ.html#pre_and_post_configuration_scripts > > JP >
Fantastic, that's probably the hint i need! (Top-posted and all ;-) > From: Eric Searcy <[email protected]> > > > Couple thoughts: > > I wouldn't have dirvish-runall conditional on dirvish-expire succeeding > (&&). Running your scheduled backup is (presumably) too important to skip > just because some old copies might have failed deleting (actually I'm not > sure what conditions would cause dirvish-expire to return non-zero, but I'd > want to press on with the backups regardless). > Alright - thanks for the hint. > While you're at it, put dirvish-expire before your lvm snapshot creation. > Expiring could take awhile, and you'd just be making the snapshot volume > store more blocks (if it's a write-heavy LV) by increasing the time between > LV snapshot creation and deletion. > > That done, you'd get rid of the && before the dirvish-runall line, and you > could have: > > dirvish-runall --quiet > rc=$? > > Which hopefully wouldn't have the error ... > I'll try the suggestion both yourself and JPH made about the hook script first, but I'll definitely put the runall on a separate line from the expire like this. > Last thought would be to switch to post/pre-server commands for the vault in > question (assuming a local dirvish backup from the looks of it? ... > otherwise pre/post-client). Would be "cleaner" if you have other vaults to > backup that don't need to be inside the snapshot critical-space. :-) > > Eric I'll try this straightaway! Thanks very much, Jenny _______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
