public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] copy file and preserve ownership
@ 2014-09-17 22:54 Joseph
  2014-09-17 23:14 ` [gentoo-user] " Jouni Kosonen
  2014-09-18  5:26 ` [gentoo-user] " Alan McKinnon
  0 siblings, 2 replies; 4+ messages in thread
From: Joseph @ 2014-09-17 22:54 UTC (permalink / raw
  To: gentoo-user

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.

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"

-- 
Joseph


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-18  5:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 22:54 [gentoo-user] copy file and preserve ownership Joseph
2014-09-17 23:14 ` [gentoo-user] " Jouni Kosonen
2014-09-17 23:25   ` Joseph
2014-09-18  5:26 ` [gentoo-user] " Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox