[lug] Migrating /home...rsync?
David L. Willson
DLWillson at TheGeek.NU
Wed Sep 28 05:55:28 MDT 2016
Looks like everyone has their favorite rsync command. Here's mine:
$ sudo rsync -avHP src/ dest/
"sudo" and "-aH" to replay metadata like link-state, ownership, perms, and timestamps.
"-v" for lights.
"-P" for lights and restarts.
add "--dry" for a dress-rehearsal.
add "--delete" to remove orphans, files on the destination that don't exist in the source.
To `du` lots of things, consider `ncdu`.
Please include a little of your output or a link to a full log or something.
--Willson
-------- Original message --------
From: Lee Woodworth <blug-mail at duboulder.com>
Date: 9/28/16 1:07 AM (GMT-07:00)
To: "Boulder (Colorado) Linux Users Group -- General Mailing List" <lug at lug.boulder.co.us>
Subject: Re: [lug] Migrating /home...rsync?
Any luck yet?
I have in the last week used similar commands to copy 2TB
w/o any problems (local & remote). The diffs found no
problems and the data is really there, although I am not
copying xattrs or acls:
rsync --archive --one-file-system --stats /src/ /dest/
Since you have root diffs ok, but user access errors, it
suggests a permission issue. Maybe on /home itself.
On 09/27/2016 07:52 PM, stimits at comcast.net wrote:
> Hi,
>
> I've been trying to copy over my home to a new RAID partition, but cannot seem to do so. I just want to clone an exact copy of /home to the temporary mount point of /mnt. When I use recursive diff to test if the two match, they do. When I look at file sizes, names, so on, they match. In no case does any version of "du" match, and I can't find the location of the byte size differences...perhaps it is counting directory sizes different between the original and RAID partitions due to meta data differences, but both are regular drives withe 512 byte block size. If I mount my RAID on /home and log in to my regular user, it becomes obvious right away that my desktop and settings are completely gone...yet I can't find anything different in the file copies.
>
> This is my command which seems to come closest to a good copy of /home to /mnt (performed as root in text mode on Fedora 23):
> rsync -avcrxXl --delete /home /mnt/home
>
> The above command fails to back up the directory correctly, so is rsync not suitable for this? Should I use something different? Perhaps just a different rsync argument? Does anyone recommend something like a backup program instead?
>
> Thanks!
>
>
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
_______________________________________________
Web Page: http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20160928/7aa934c7/attachment.html>
More information about the LUG
mailing list