[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: file system dumps



On Fri, 2003-01-31 at 06:55, Cameron Simpson wrote:
> No. It won't treat devices as files.
> Besides, there's no point - dd will work just as well.
> 
> So will rsync. Faster, too.
> 
> I feel I'm missing something here.
> Why do you want to copy at the partition level?

OK, here is my particular setup and what i have done so far. I have a
hot-swap server with (2) 36G drives. One is currently in use
(production) and the other is "dark". The structure is as follows:

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1        44    353398+  83  Linux
/dev/sda2            45      4427  35206447+   f  Win95 Ext'd (LBA)
/dev/sda5            45      2108  16579048+  83  Linux
/dev/sda6          2109      2375   2144646   82  Linux swap
/dev/sda7          2376      4427  16482658+  83  Linux

where the partitions are as follows:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda7             15966472   2062172  13080168  14% /
/dev/sda1               342241     24339    300233   8% /boot
/dev/sda5             16059784    346220  14884612   3% /disk2
none                    515492         0    515492   0% /dev/shm
/dev/sdb5             16059784    341816  14889016   3% /clone/disk2
/dev/sdb7             15966472   1997976  13144364  14% /clone/slash
/dev/sdb1               342241     24339    300233   8% /clone/boot

basically a single-disk system containing the boot, root, and content
partitions for a webserver. My issue is that i will have to write an
exclusion list for rsync to avoid respecting symlinks as i do not want
to rsync the remote nfs mounted partitions, just the local ones (i.e.
sda1/5/7) with the proper trees of the filesystem.

Last nite i managed to kick everyone off the server, stop the webs, and
unmount all nfs mounts, then kicked off dd before crashing for the nite.
I got up this morning, rebooted the box so i could properly mount the
"dark" drive and peruse it. It cloned ok, and i mounted the three
"cloned" partitions as /clone/slash, /clone/boot, /clone/disk2 and they
appear to be intact and look good. Now what i am trying to do is setup
the rsync or dump job so i can cron it nightly. I want to have an
exclusion list that excludes the nfs mounts (that was the reason for my
illogical desire to rsync device rather than directory, but if i can get
the syntax correct, directories will work fine). So, taking your
example, how would i construct the syntax to allow me to do this AND
work with an exclusion list for nightly dumps via rsync?

Thanks
Michael






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]