From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 20 Jul 2009 12:04:57 +0100 From: Ethan Grammatikidis To: 9fans@9fans.net Message-Id: <20090720120457.c6e8c499.eekee57@fastmail.fm> In-Reply-To: <3BBB12CF4EFF4040B38542759379E3CD0278F4@XMAIL.asuch.cas.cz> References: <20090719172415.b7279d56.eekee57@fastmail.fm> <3BBB12CF4EFF4040B38542759379E3CD0278F4@XMAIL.asuch.cas.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] dcp - a deep copy script, better than dircp Topicbox-Message-UUID: 2896befe-ead5-11e9-9d60-3106f5b1d025 On Mon, 20 Jul 2009 11:32:11 +0200 wrote: > hi, > > i'm quite happy with the 'cpdir' by Kenji Arisawa (thanks, Kenji!) on sources/contrib/arisawa. > However, your scripty seems fine, too. Could we add a switch to conform with gnu's cp -au? Just not to overwrite newer files. I don't know there is an option there in 'tar' (I can't see in in tar(1)). At least we have the 'k' modifier, which could help. Tar's -k modifier is the nearest I can find. Mkext has no such option and I've found no cpio (thankfully?). I don't know where to look for or suggest such an option. It may seem natural in tar, but there's a danger with archive utilities that their feature list may grow well beyond a comfortable size for the ordinary user. Also a copy which omits files would be much faster if it did not read the files which it is going to omit, which rather rules out archive_util | archive_util usage. I think the option would be better added to arisawa's cpdir, but I'm too lazy. :) -- Ethan Grammatikidis Those who are slower at parsing information must necessarily be faster at problem-solving.