[Dirvish] Multiple filesystems

Zachary Fortna ZFortna at cxtec.com
Thu Feb 3 05:37:04 PST 2005


He is the way the file system looks on the server that I am trying to backup
along with the 2 dirvish config files. I tried changing xdev to false but it
only backed up the / filesystem, not another of the other ones since they
reside on separate partitions.  I'm beginning to think I may not have
phrased my first question properly.  Thanks for the help.   


[root at drupal root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             1.5G  133M  1.3G  10% /
/dev/sda1             144M   15M  122M  11% /boot
/dev/sda2             2.9G   42M  2.7G   2% /home
none                  503M     0  503M   0% /dev/shm
/dev/sda6              12G  1.4G  9.4G  13% /usr
/dev/sdb1              34G  1.4G   31G   5% /var

/dirvish/drupal/dirvish/default.conf
client: drupal.cxtec.com
tree: /
xdev: false
index: gzip
image-default: %Y%m%d
exclude:
        var/cache/apt/archives
        var/cache/man
        tmp
        var/tmp
        /proc

/etc/dirvish/master.conf:
bank:
        /dirvish
exclude:
        lost+found/
        core
        *~
        .nfs*
Runall:
        sms2003 19:00
        drupal  22:00
expire-default: +15 days
expire-rule:
#       MIN HR    DOM MON       DOW  STRFTIME_FMT
        *   *     *   *         1    +3 months
        *   *     1-7 *         1    +1 year
        *   *     1-7 1,4,7,10  1
        *   10-20 *   *         *    +4 days
#       *   *     *   *         2-7  +15 days

Zachary Fortna, DAD
Sr. Technical Specialist
CXtec
315.476.3000, ext 2570
fax: 315.455.1800

CXtec (formerly CABLExpress Technologies) is a DBA of Cablexpress
Corporation. Visit us online at www.cxtec.com.


-----Original Message-----
From: dirvish-bounces at dirvish.org [mailto:dirvish-bounces at dirvish.org] On
Behalf Of Keith Lofstrom
Sent: Wednesday, February 02, 2005 5:25 PM
To: Dirvish user and developer mailing list
Subject: Re: [Dirvish] Multiple filesystems


On Wed, Feb 02, 2005 at 04:52:24PM -0500, Zachary Fortna wrote:
> We have numerous linux clients which have multiple filesystems (/, 
> /var, /usr, etc).  How can I back up all the filesystems with 1 rsync
operation?
> Or is that not possible.  I don't want to have multiple directories 
> for each of the filesystems.


While the multiple file systems can be useful (it makes mixed restores,
essential for some security problems, much easier), you probably have good
reasons for a single tree.  You can tell dirvish to start at root and allow
it to cross file system boundaries, with a dirvish/default.conf that looks
something like this:

/backup/dirvish/mymachine/dirvish/default.conf
----------------------------------------------
client: mymachine
tree: /
xdev: false
index: gzip
image-default: %Y-%m%d-%H%M
exclude:
        /proc
----------------------------------------------

"xdev: false" will do what you want.  Be sure to exclude /proc or nasty
things may happen.  Also, be sure to mkdir /proc when you do a bare-metal
restore.

Note:  I have not tested this - just going by the man pages.  Please let us
know how this works for you!

Hope that helps.  Happy dirvishing!

Keith

-- 
Keith Lofstrom          keithl at keithl.com         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
_______________________________________________
Dirvish mailing list
Dirvish at dirvish.org
http://www.dirvish.org/mailman/listinfo/dirvish


More information about the Dirvish mailing list