On 18/09/2014 00:54, Joseph wrote:
> I like to use meld to copy file but meld does now preserve ownership of
> the file that it copy.
> rsyc does but how do I use rysnc to copy let say file that are newer
> then certain date ?
> 
> I was trying to use:
> find /home/myuser/oldir/* -mtime -60 -exec cp {} /home/myuser/newdir/ \;
> 
> but cp does not preserve file ownership either.

Basic Unix principle:
Only root can do it because a regular user cannot chown an object

cp -a

or

cp -pr


> 
> I was planning on copying hylafax-files (faxes) from one server to
> another and most of those files have ownership "uucp:60002 or "uucp:uucp"
> 


-- 
Alan McKinnon
[email protected]


Reply via email to