Re: local partition backup with rsync [MORE INTERESTING!]
Hugo Vanwoerkom wrote:
I would like to do a local partition backup with rsync.
It works right with a partition that contains /home:
rsync -av --delete /hda10 /sdb7
But it does not work right with the partition that I boot into:
rsync -av --delete --exclude /home --exclude /usr/local --exclude /hda10
He does it the first time, but the second time, which is supposed to be
just an update, he copies all files again and runs out of room.
Anybody uses rsync to backup the partition that they boot into?
So to fix this you --exclude /hdb5 also.
Now for the fascinating part!
That backs up the root partition (/hdb3) to hdb5. Supposedly if you then
change /etc/fstab on /hdb5 and run lilo pointing to partition /hdb5 you
should be able to boot hdb5.
Wrong. It says it is booting hdb5 but a df shows that / is hdb3!
So I think, it's got to be me. Let me try mondo! So I do a mondoarchive
to DVD and boot the DVD and restore to hdb5. Mondo makes you edit fstab
and lilo.conf and runs lilo for you.
I boot into hdb5, and what is root set to? hdb3!
This is what the partition table looks like on that ATA disk:
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 973 7815591 83 Linux
/dev/hdc2 974 1946 7815622+ 83 Linux
/dev/hdc3 1947 2919 7815622+ 83 Linux
/dev/hdc4 2920 9729 54701325 5 Extended
/dev/hdc5 2920 3892 7815591 83 Linux
/dev/hdc6 * 3893 4865 7815591 83 Linux
/dev/hdc7 4866 9729 39070048+ 83 Linux
The mountpoint for /dev/hdc1 is /hdb1 etc.
I can boot into /dev/hdc1, /dev/hdc3, /dev/hdc6 correctly and root
points to those devices.
I cannot boot /dev/hdc2 because that Debian is configured for the
previous motherboard I had.
/dev/hdc7 is storage.
Booting into /dev/hdc5 cause root to point to /dev/hdc3.
Is that strange or what?