[Dirvish] Updating/overwriting existing images
Samuel P Howard
dirvish at GMxTechnologies.com
Mon Aug 7 22:56:44 UTC 2006
Hi.
I have a little script set up to automate the running of the "dirvish
--vault {foo}" jobs, and sometimes the client pushes a new dataset to
the staging area for dirvish to backup.
However, the configuration is set up for only 1 image per day.
So, is there an option for updating or overwriting an existing image? I
haven't been able to find it, but then again, I may be blind, too.
As an alternate, I thought of checking the return code, but the RC for
running a dirvish --vault for an image that already exists comes back
with RC=224.
224 is in the 220-254 range ("An error was detected in the
configuration."), which I wouldn't consider a very accurate description
of the reason for the failure.
Something like "Image already exists" might be nice. :)
The only option I currently see is to attempt the dirvish command, if it
fails with a 224, remove the existing directory and re-create it ...
somehow, I think that will bite me down the road with the indexes,
however. Also, since 224 is range that sounds more like the config file
is broken, I wonder what other conditions could return that error code?
Any ideas?
Thanks,
Sam
More information about the Dirvish
mailing list