Maintaining Ownership When Copying Files and Directories
Sean McGlynn
sean_mcglynn at yahoo.com
Wed Apr 4 12:35:54 UTC 2007
OK, I see that running the command from the source is the way to go (at least for cpio, I don't appear to have afio). But unfortunately it is not maintaining ownership, which is the issue. I can't access the source as root, which is the "root" of the problem, and running the command as a user who has access to the source is what, I believe, is inhibiting the maintenance of the ownership.
Same deal for rsync.
Thank you.
----- Original Message ----
From: Jim Canfield <jcanfield at tshmail.com>
To: General Red Hat Linux discussion list <redhat-list at redhat.com>
Sent: Tuesday, April 3, 2007 2:02:24 PM
Subject: Re: Maintaining Ownership When Copying Files and Directories
Matthijs.Sneijders at corusgroup.com wrote:
> i always like:
> find . -depth -print |cpio -pdmuv "destination"
>
> but also
> rsync -azu source target
>
>
I like it too. For "safer" file level compression use you could also
use afio:
find . -depth -print |afio -o -v -Z "destination"
-Jim
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
More information about the redhat-list
mailing list