Maintaining Ownership When Copying Files and Directories

Sean McGlynn sean_mcglynn at yahoo.com
Wed Apr 4 12:23:40 UTC 2007


Thank you both for your replies.

I see the reference to the destination (using cpio/afio), but how am I establishing the source, by running the command from the source?

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


 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html


More information about the redhat-list mailing list