GNU bug report logs - #25252
cp: add --sync option (dealing with interrupted copies)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: "Robert Gruber" <rubbish@HIDDEN>; dated Fri, 23 Dec 2016 07:57:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'cp: add --sync option (dealing with interrupted copies)' from 'GNU coreutils 8.21 / cp' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Dec 2016 07:56:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 23 02:56:35 2016
Received: from localhost ([127.0.0.1]:52034 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cKKiQ-0005bv-Ot
	for submit <at> debbugs.gnu.org; Fri, 23 Dec 2016 02:56:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39822)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rubbish@HIDDEN>) id 1cKK3X-0004dN-S7
 for submit <at> debbugs.gnu.org; Fri, 23 Dec 2016 02:14:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rubbish@HIDDEN>) id 1cKK3S-0001jj-0Z
 for submit <at> debbugs.gnu.org; Fri, 23 Dec 2016 02:14:14 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42852)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rubbish@HIDDEN>) id 1cKK3R-0001jc-Tj
 for submit <at> debbugs.gnu.org; Fri, 23 Dec 2016 02:14:13 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59025)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rubbish@HIDDEN>) id 1cKK3Q-00028N-WA
 for bug-coreutils@HIDDEN; Fri, 23 Dec 2016 02:14:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rubbish@HIDDEN>) id 1cKK3M-0001i6-31
 for bug-coreutils@HIDDEN; Fri, 23 Dec 2016 02:14:13 -0500
Received: from tatiana.utanet.at ([213.90.36.46]:43507)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rubbish@HIDDEN>) id 1cKK3L-0001hp-Nf
 for bug-coreutils@HIDDEN; Fri, 23 Dec 2016 02:14:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=utanet.at;
 s=rev1; 
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:To:From:Subject:Date:Message-ID;
 bh=BfAw/Xw07WO5PrhIRhkNVnZrLUIXGTpSM/tzLoamxTk=; 
 b=Ab11Xe1iwFwhjdvs7Jqvh9FhdJLiBaZJG50tvzVC2HRT2zcftDX1mlFVYivptdDhc5UGlJW+Xj+8Aq+B0xVjR/A1mQ0Rqa9rmdnQx25BcMXWidUOS6D/FTwN+5dNBbvDmYQYGfPpgmntE8DkUA/g1K7C71UKnlRGClnZ8857AcA=;
Received: from plenty.xoc.tele2net.at ([213.90.36.8])
 by tatiana.utanet.at with esmtp (Exim 4.80)
 (envelope-from <rubbish@HIDDEN>) id 1cKK3I-0003Kf-Tb
 for bug-coreutils@HIDDEN; Fri, 23 Dec 2016 08:14:04 +0100
Received: from caroline.xoc.utanet.at ([213.90.36.97] helo=utanet.at)
 by plenty.xoc.tele2net.at with esmtpa (Exim 4.80)
 (envelope-from <rubbish@HIDDEN>)
 id 1cKK3I-0004wz-Pj; Fri, 23 Dec 2016 08:14:04 +0100
Received: from 85.127.250.190 by pwebmail6.utanet.at with HTTP;
 Fri, 23 Dec 2016 08:14:04 +0100 (CET)
Message-ID: <36246.85.127.250.190.1482477244.bloek@HIDDEN>
Date: Fri, 23 Dec 2016 08:14:04 +0100 (CET)
Subject: GNU coreutils 8.21 / cp
From: "Robert Gruber" <rubbish@HIDDEN>
To: <bug-coreutils@HIDDEN>
X-Priority: 3
X-Mailer: UTA-WebMail (version 1.2.7/SGGv4)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-TELE2-Authenticated-As: d029939221d53565fc18d15735f34f8a50c23223
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 23 Dec 2016 02:56:33 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

Hello!

I would suggest to add an option --sync for the copy command:

cp -au --sync . /DEST

The parameter -au works perfect except in the case the command is
cancelled for some reason during the process and restarted again. In such
case there is at least one destination file which is smaller then the
source file and this file stays smaller because the second start of the
command recognizes already that the file is present but it should be
copied again.

Kind regards and merry christmas,
Robert Gruber






Acknowledgement sent to "Robert Gruber" <rubbish@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#25252; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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