[Dirvish] Inotify triggered backup
Red Mop
redmopml at comcast.net
Thu Feb 7 19:18:41 UTC 2008
Anyone have any corrections for this?
On Tuesday 05 February 2008 03:44:41 pm Red Mop wrote:
> I'm working on an inotify triggered dirvish backup for computers that are
> not always on. The idea is that a script runs either on boot or in a cron
> job on the client that creates a file on the server via ssh which then
> activates dirvish. Once it's working, I'll post it for anyone to use.
>
> I have alot of it figured out, though I do have some dirvish querstions.
>
> I don't want to run an expire on a group of images until they are backed
> up. Thus, I came up with this:
>
> dirvish-expire --vault vault
> dirvish --config file --vault vault
>
> I just need to know what needs to be in the config file, at minimum. I
> believe it needs to be a combination of master.conf and the individual
> vault default.conf file. I believe the following will do what I need. Can
> anyone confirm this for me?
>
> bank:
> /home/dirvish/personal
>
> image-default: %Y-%m-%d
> client: yertle
> tree: /home
> xdev: 1
> exclude:
> lost+found/
> proc/
> core
> **/cache/**
> **/Cache/**
> **/.cache/**
> **/.Cache/**
>
> expire-default: never
> expire-rule:
> #MIN HR DOM MON DOW EXPIRE
> * * * * * +4 weeks
> * * * * 1 +6 months
> * * 1 * * +7 year
> * * 1 1 * never
>
> log: bzip2
> index: bzip2
> pre-server: /usr/local/sbin/dirvish-pre
> post-server: /usr/local/sbin/dirvish-post
More information about the Dirvish
mailing list