From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: copy file and preserve ownership
Date: Wed, 17 Sep 2014 17:25:18 -0600 [thread overview]
Message-ID: <20140917232518.GE24503@syscon7> (raw)
In-Reply-To: <lvd4kd$nml$1@ger.gmane.org>
On 09/18/14 02:14, Jouni Kosonen wrote:
>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.
>>
>> 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"
>>
>
>From "man cp":
>...
>
> -p same as --preserve=mode,ownership,timestamps
>
> --preserve[=ATTR_LIST]
> preserve the specified attributes (default: mode,ownership,
> timestamps), if possible additional attributes: context,
> links, xattr, all
>
>
>Might I suggest a pattern here? ;-)
>---
>Jouni
Thank, missed that :-/
--
Joseph
next prev parent reply other threads:[~2014-09-17 23:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2014-09-18 5:26 ` [gentoo-user] " Alan McKinnon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140917232518.GE24503@syscon7 \
--to=syscon780@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox