Back to the main page
What is this?
Dirvish is disk base (use disks to maintain multiple copies of source file trees), rotating network backup system.
Ideally, place dervish server in other location/building, especially if you work in Silicon Valley (where you can be hit by earthquake any moment).
You can still backup on tapes, like from dervish server during working hours, so you don't have any downtime or other inconvenience.
Dirvish uses rsync so network traffic load should not be an issue.
Some tips about capacity
These depends widely of how long you keep backup, but say that for rotation backup s/w like this one, you need 2-3 times the size of file system you backup.
1. Banks are places (like directory) where you store ONLY vaults.
2. Vault is repository (backup place) for FS. It contains images. It also has configuration info in directory $VAULT/dirvish
3. Image is complete duplicate (in specific time) of a FS (most likely you will have one image per day)
only unchanged regular files are shared between images, while device nodes, symlinks, directories will be recreated for each image.
So vault will have much more inodes that source FS.
There is no compression here, otherwise Dirvish cannot transparently restore files.
Files are already shared between images plus many applications already store data in compressed formats.
An image is complete copy of FS, so restoration is just "copy what you need back".
Make sure to preserve ownership, permissions and modification time of restored files (you may want to use rsync or scp).
Another idea is sharing and read-only export (NFS/Samba) of backup location.
Requirements for Dirvish
Dirvish is some kind of Perl wrapper for rsync. So you need this stuff.
How to install it?
The easiest way to install dervish is using pkg-get and grab it from blastwave.org. The version they offer is 1.2.1
Files of interest
-rwxr-xr-x 1 root bin 28477 May 25 2005 dirvish
-rwxr-xr-x 1 root bin 10748 May 25 2005 dirvish-expire
-rwxr-xr-x 1 root bin 10505 May 25 2005 dirvish-locate
-rwxr-xr-x 1 root bin 8176 May 25 2005 dirvish-runall
/var/sadm/pkg/CSWdirvish> cat pkginfo
NAME=dirvish - a fast, disk based, rotating network backup system
VENDOR=http://www.dirvish.org/ packaged for CSW by Joshua Buysse
INSTDATE=Jul 02 2009 19:44
About Dirvish configuration script
Master conf file for Dirvish is /opt/csw/etc/dirvish/master.conf (if you install Dirvish using pkg-get, this is most likely location).
Each vault (FS) has its own conf file, $VAULT/dirvish/default.conf
Pre and Post configuration script
These scripts are run before and after the Dirvish run itself.
The scripts run for each vault (File System) in next order:
1. Place these scripts in master.conf file and run them for each vault
2. Place these scripts in $VAULT/dirvish/default.conf file and run them for that specific FS
Note: pre-client and post-client scripts must reside and be executed on client (not Dirvish server).
Back to the main page