From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4C37713838B for ; Wed, 17 Sep 2014 23:25:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A8BAE0B47; Wed, 17 Sep 2014 23:25:15 +0000 (UTC) Received: from mail101c7.megamailservers.com (mail717.megamailservers.com [69.49.98.27]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 347BEE0B00 for ; Wed, 17 Sep 2014 23:25:14 +0000 (UTC) X-POP-User: admin@sys-concept.com X-VIP: 69.49.109.100 Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail101c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id s8HNPBdb010357 for ; Wed, 17 Sep 2014 19:25:13 -0400 Received: by syscon7.localdomain (Postfix, from userid 1000) id 435A52003B6; Wed, 17 Sep 2014 17:25:18 -0600 (MDT) Date: Wed, 17 Sep 2014 17:25:18 -0600 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: copy file and preserve ownership Message-ID: <20140917232518.GE24503@syscon7> References: <20140917225407.GD24503@syscon7> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-CTCH-RefID: str=0001.0A02020A.541A1859.005E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=bYZSDo/B c=1 sm=1 tr=0 a=C3ZDv51cNVt4vJz/79I2xQ==:117 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=SDcUNfBxAAAA:8 a=BDKbP5mgAAAA:8 a=Unq3plm5DvEA:10 a=M1kyBYkWWGkA:10 a=6xhPpJgn7AwA:10 a=fyHPiX6-U1gA:10 a=nDghuxUhq_wA:10 a=8nJEP1OIZ-IA:10 a=pGLkceISAAAA:8 a=3ReTYUCYUfSEeS0y3KUA:9 a=wPNLvfGTeEIA:10 X-Origin-Country: CA X-Archives-Salt: 019b2b11-748f-493e-8bd3-0d067af85064 X-Archives-Hash: ed15b9bc91ec12ba2fd5fa45a5cfdca4 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