GNU bug report logs - #20094
cp: add --dry-run option

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 12 Mar 2015 03:32:01 UTC

Severity: wishlist

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bob Proulx <bob <at> proulx.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>, 20094 <at> debbugs.gnu.org
Subject: bug#20094: cp --dry-run
Date: Thu, 12 Mar 2015 11:55:00 -0600
積丹尼 Dan Jacobson wrote:
> Proposal:
> add a new "cp --dry-run"
> Reason: we want to know what the verbose output of e.g.,
> $ cp -i -av /mnt/usb/thumb/ tmp/androidBackup/SDCard
> will be without actually running the command first.
> We are about to commit to a megabyte copy and we want to be sure where
> all those files are exactly going even after understanding all the
> documentation, and without needing to do partial "wet" runs
> etc. etc. etc. etc.

For this functionality I suggest using rsync which already implements
this capability.

  rsync -n -av /mnt/usb/thumb/ tmp/androidBackup/SDCard/thumb/

I see you using cp -i but if you are going to be copying megabytes and
many files I assert that cp -i isn't a good practical way to ensure a
good result.  But rsync --ignore-existing and --update options are
available for data merging.

Bob




This bug report was last modified 6 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.