rsync is bad...now fixed
Karl Larsen
k5di at zianet.com
Sun Jun 8 17:09:41 UTC 2008
Les Mikesell wrote:
> Karl Larsen wrote:
>
>>> Can't do that now Mike. I formatted the partition again for a fresh
>>>
>> start. I used a rsync method recommended and will comment on it's
>> workings. I fixed the recommended rsync method and used it to backup
>> this Ubuntu to /dev/hda7 again. The rsync ended with zero errors.
>>
>> Here is the way I used rsync:
>> karl at karl-desktop:~$ cat /root/bin/rsync1
>> # This file is designed to backup my Ubuntu to the USB Hard Drive using
>> rsync
>> # Karl Larsen, 8 june 08
>> # rsync -vaHz --exclude '/proc' --exclude '/sys' --exclude '/media' /.
>> # /media/disk
>> rsync -vaH --exclude '/proc' --exclude 'sys' --exclude 'home' --exclude
>> '/mnt' /. /mnt
>>
>> The last line is what I used because I wanted the backup to go direct to
>> /dev/hda7 and it did.
>>
>> Next I went to /mnt/etc/fstab and changed the uuid to the one I made
>> yesterday for /dev/hda7. Then I reboot and came up in the backup. It
>> found the kernel and the splash panel came on and there it stopped.
>>
>> I rest my case. Rsync does not work as a backup because the backup
>> does not work. Period.
>>
>
> No, it just doesn't work when you do it wrong. Did you create the
> directories you excluded from being copied - with the same
> owner/permissions as the originals?
>
>
Hi Les, this message is from my Ubuntu that was just backed up with
rsync. The problem I learned is you must get a NEW uuid made AFTER you
back up or the backup will not boot :-)
The rsync I used was from Rex and it worked fine after I fixed it.
The new uuid was all I had to do to get it working.
Here is what I used:
rsync -vaH --exclude '/proc' --exclude 'sys' --exclude 'home' --exclude
'/mnt' /. /mnt
I call this with a sudo so it is a root privledge.
Rex had a Z in his string but my rsync upchucked with that :-)
Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7
More information about the ubuntu-users
mailing list