copying a home directory onto a removable drive and back

Tim Henderson bizdev at
Wed Jul 28 22:10:15 UTC 2010

> On Wed, Jul 28, 2010 at 5:38 PM, Tim Henderson<bizdev at>  wrote:
>>> I think if you use cp -ar the a gets you all the links in
>>> files. Look at man cp and be sure.
>> If you use the cp command (I would not recommend, rsync all the way),
>> you should use the -p flag to preserve permissions.
> cp -a includes -p and -r
> It also preserves selinux contexts and extended attributes.


More information about the ubuntu-users mailing list