On Du, 27 iul 14, 05:11:25, PaulNM wrote:
> On 07/27/2014 04:48 AM, Andrei POPESCU wrote:
> > On Du, 27 iul 14, 11:39:52, David Baron wrote:
> >>
> >> The procedure would be simple and bulletproof:
> >> Copy / to new partition (what is the best way to do this, preserving 
> >> symlinks 
> >> and other properties, not running afoul of /sys and such?).
> > 
> > rsync -ax
> 
> That'll work fine on many systems. ("x" sticks to just the one
> filesystem, and "a" for archive includes a bunch of other good options)
> 
> Even better is rsync -axHAXS
> 
> That preserves hardlinks, acls, extended attributes, and properly
> handles sparse files.
 
I'd argue that whoever uses ACLs and extended attributes will also know 
to preserve them. Point taken on sparse files (though these should be 
rare / inexistent on a new install) and hardlinks.

> I usually throw in a "v" for verbose, and "P" (Keeps partially copied
> files and displays progress). "P" is especially useful if you have a
> bunch of large files and expect to interrupt/resume the copy at times.
.. 
> Also a great idea.  In that case I'd add "--delete" to the options, as
> that will remove files in the destination that no longer exist in the
> source.
> 
> rsync -avxPHAXS --delete source destination

Right, forgot about -P and --delete.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature

Reply via email to