[Dirvish] Creating Backups with image-default: %Y%m%d/%Y%m%d-%H_%M
Cord Walter
cord.walter at gmx.de
Wed Aug 22 18:43:57 UTC 2007
Johannes Kastl wrote:
>
> How to solve that? How to tell dirvish to create two directories the
> first time it runs on a day (e.g. 20070822 and 20070822/1930 need to be
> created).
What about running
mkdir $(date +%Y%m%d)
prior to the (first) backup? That should create the directory... maybe
you can check with "test" if the directory exists for 2nd to nth backup...
The "pre-server" parameter in dirvish.conf might be handy with this...
http://www.dirvish.org/dirvish.conf.5.html
-cord
--
Cord Walter
email: cord.walter at gmx.de
Weil es niemanden etwas angeht, dass ich nichts zu verbergen habe:
http://www.gnupg.org/
http://www.truecrypt.org/
More information about the Dirvish
mailing list