Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] copy file and preserve ownership
Date: Wed, 17 Sep 2014 22:54:09
Message-Id: 20140917225407.GD24503@syscon7
1 I like to use meld to copy file but meld does now preserve ownership of the file that it copy.
2 rsyc does but how do I use rysnc to copy let say file that are newer then certain date ?
3
4 I was trying to use:
5 find /home/myuser/oldir/* -mtime -60 -exec cp {} /home/myuser/newdir/ \;
6
7 but cp does not preserve file ownership either.
8
9 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"
10
11 --
12 Joseph

Replies

Subject Author
[gentoo-user] Re: copy file and preserve ownership Jouni Kosonen <jouni.kosonen@××××××××.com>
Re: [gentoo-user] copy file and preserve ownership Alan McKinnon <alan.mckinnon@×××××.com>