rsync differences between Fedora/Ubuntu?
c.turney at orcon.net.nz
Tue Feb 3 23:29:24 GMT 2009
(I'm only one step above a user, so would appreciate any technical
answers thoroughly explained. But if you're in a real rush, I could
just forward your reply to a local wizard for translation.)
With the script below, I use rsync to mirror the /boot partition and the
/ (without /boot) partition on to removable ATA/IDE hard drives.
(Insertion/removal of mirror drives are during power down.)
This script works perfectly on my Fedora Core 5 system... After backing
up and umount-ing, the /mnt/newboot and /mnt/newroot are empty and the
mirrored disks are exact bootable clones.
But corresponding commands in my Ubuntu Hardy (different hard disks,
same platform otherwise) seem to send the copies to the /mnt/newroot
DIRECTORY of the ORIGINAL source root partition (and probably NOT on to
the mounted partition - I haven't checked if it is there). After
umount-ing and even power cycling, they're in the wrong place.
I've just done a complete system update on my Hardy.
This problem does NOT seem to happen to the /mnt/newboot (e.g.
I =am= taking into account differences like Ubuntu recognising it as
/dev/sdb3 vs Fedora's /dev/hde3.
Thanks very much,
Primary master is removable slot, booted Fedora or Ubuntu drives.
Primary slave is fixed (and empty) DVD drive.
Secondary master is removable slot, mirror of Fedora or Ubuntu drives.
Secondary slave is removable slot, usually empty.
Partitions/devices were identified by respective fdisk in both cases.
No error messages in mounting or unmounting mirror drives. However,
after unmounting, when trying to RE-mount /dev/sdb3 on to /mnt/newroot,
system replies that the partition is busy and mounted to /
This is the script on my Fedora system. I do these steps (modified) on
the Ubuntu system...
> echo Mounting and backing up the boot area
> echo x
> mount /dev/hde1 /mnt/newboot
> rsync -aHvx --delete /boot/ /mnt/newboot
> umount /dev/hde1
> echo Mounting and backing up the root area
> echo x
> mount /dev/hde3 /mnt/newroot
> rsync -aHvx --delete // /mnt/newroot
> umount /dev/hde3
More information about the rsync