[Dirvish] Inotify triggered backup

Red Mop redmopml at comcast.net
Thu Feb 7 22:00:25 UTC 2008


On Thursday 07 February 2008 02:30:20 pm Richard Geoffrion wrote:
> DAD-BLAD YOU TOP POSTERS!!! :)   no wonder I couldn't find your post in
> my reply!  I kept cutting it! hahahaha
>
> I do understand what you are trying to do and I think that it is GREAT!
> You are making a client initiated dirvish backup of said client.
> Awesome concept, I've thought (in passing) of doing that myself, but
> only my OSX boxes do cron jobs based on events other than just scheduled
> times. What OS/DISTRO is your dirvish server?
>
> > Either way, I just need to know how to run dirvish and dirvish-expire on
> > a specific vault via command line.  I have the rest figured out.
>
> to run dirvish on a specific vault, it's as simple as
>
> dirvish --vault $VAULTNAME
>
> and dirvish-expire is the same way..
>
> dirvish-expire --vault $VAULTNAME
>
>
> One could even process each vault in a specific bank by chdir to the
> bank and running a for loop.
>
> for CURRENTVAULT in * ; do dirvish --vault $CURRENVAULT ; done

Bottom posted just for you. ;)

Ok, now what do I need to put in the config?  Do I even need one?  I think I do as sometimes my laptop will need to be backed up remotely, and thus, I will need to change the ip/hostname in the settings.  If someone knows a way around this, then I can actually finish this project.

I'm running gentoo on all computers, though I will be adding this to windows soon enough.

I have  multiple computers in the same bank, though I am considering changing that, and multiple vaults per computer.

So this should be all I need to do then?

COMPUTERNAME=(triggering computer)

for VAULTNAME in `ls -1 $COMPUTERNAME-*` ; do
	dirvish-expire --vault $VAULTNAME
	dirvish  --vault $VAULTNAME
done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dirvish.org/pipermail/dirvish/attachments/20080207/0190cf4c/attachment.html 


More information about the Dirvish mailing list