Partitioned LINUX, need dd command to obtain image
I need to obtain an OS image (for recovery purposes). The Primary is as below:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 956 7164990 83 Linux
/dev/sda3 957 1593 5116702+ 83 Linux
/dev/sda4 1594 4427 22764105 5 Extended
/dev/sda5 1594 1848 2048256 83 Linux
/dev/sda6 1849 2103 2048256 83 Linux
/dev/sda7 2104 2167 514048+ 83 Linux
/var is on another disk as below:
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1275 10241406 82 Linux swap
/dev/sdb2 1276 1912 5116702+ 83 Linux
/dev/sdb3 1913 2167 2048287+ 83 Linux
/dev/sdb3 on /var type ext3 (rw) <---mounted
This is the command I have been using on other servers ("of" is a mounted NFS disk:
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /mnt/server/server.img.gz
Is there a way to structure the "dd" command using two sources? If not, then how can I get the full copy from sda and the partition from sdb in one image?
Thank you in advance for your help!
Connie
|