delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/10/12/06:56:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0792338515E4
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=outlook.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=hcsWCl+4izVqPhdWXFD0XuusTY5SizFXY1v76FNeAX7QXkhcIRg8BVX9gcmNVbzfFoQfT9I3kNf7j//nopYzwH38D2GSGFxlQskwxniv6M8BEu/jV4Z54wmI733A/zktMkKYzF98cwtNzGfkD+1wFWoHWY0sthGPTy1H5BtcXfNhxC3aBO0rlg048R5ZYq0dYBxrwMZxDdKhzigtoVjufful3j4ke+qMdbfFGeT15MKPAdxNrYe0G81XmBkxX7UfwSxXs5ocPFEYda+5A+9OpN9vpDdQ227sIWKyEHEkgiCCPKWhiws8Gd+UX5g817lpLUGVyvEASUwaIqG0aR5dHw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=N5pVak6pjaB6Ab9xEPrPG6DQcM3IQMqzx9c1cthZYTQ=;
b=FqOXfPcCAwsrVsvL5CxvtEGvqkRS1DWKY01XsRgWNbpn00Tqx9kTe3F65US7rysuFyZndutlQ1YDMjfm7TOImYf6+hSVnDBEWLz2xCVUbr97W/Fj65YglzHqR/hq0QgWOWSqui5rrByj2zCaCBh7O3xn1JrWDiWP6aWuu/HobLPa7nJAHAenwwpS4RxsPwaMtK0ccFljeEerFDigx4NezEJpkR07BaraA1spUKkdh9Jh+uUcChB0T0wkiI/4pRY4kyoR+OLJ4PxZw+W1nZWcfjgldtpzfzcZ8o+N/SK3XEuQps5L5YFxgWP1/CpbRIGMe7t8Jh9TjpVzU2JYdMqAdg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=N5pVak6pjaB6Ab9xEPrPG6DQcM3IQMqzx9c1cthZYTQ=;
b=ShqmsJEsT2mNtVAqBW1WZITNy3QBjcnY68bCnp7UiKhuuDq6f/zkwUr1sizftMaYfxXGxcrjf99ICvrgUB7i9TZGLsg7Ad+1p9pTPjrMo9qOVT+qJy5gZodr22KbxvDd73MCuZ/m9tXa3Uc3iKiJx9+aHA8ppUZSUFu3x4biQw5cmSbZ4b99OXv4JAXeMG78td0nD70hhyzFeEaVo085O7QYvxWESDo5UPpiB34cjsapjuRW0Jal6ufZMQqPwNflgCG6RbKzpnyYENoToPd0nAWNoGpFyd5ndnXCiOoouQlBk6FThxP5m6psxGdWfBsQAR8wHhALfmo3CK01RuVxEg==
From: Fergus Daly <fergusd84 AT outlook DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: When only rsync will do .. or maybe not
Thread-Topic: When only rsync will do .. or maybe not
Thread-Index: AdjeKKImpIJ12HJATPy0XzyWSXEcIg==
Date: Wed, 12 Oct 2022 10:55:19 +0000
Message-ID: <DB6P18901MB0055D8029AD580DE9D4AB12FA4229@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
Accept-Language: en-GB, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [D94vYlRHwhl/NgvzQNJx7s/YqJvySwQs]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DB6P18901MB0055:EE_|AS1P189MB1837:EE_
x-ms-office365-filtering-correlation-id: aff3ad04-9ad6-431d-5709-08daac404128
x-ms-exchange-slblob-mailprops: 0wLWl8rLpvtClQlXHSYwpvfHgYOSZolph6TxReX1nHARQJ74paVKpggK2sfjpGuTrAg8+LqL7436/jaf91wDkM+8KSuptCiVpLQPdX5lOKmXC6/cqtWN7sBqcwP44/F2kUzlewrnc1cpVvuSsoKVZd4/1sO4HZ05KNof7xBX0A2fhh9t7U2yd+nZwg0hAV6BxBWd1ZZi2TjP8fLa1aKATQJ/ErN59rrErL5Y4DWj4O3y8LsDsMCT1OgzmYSUiAvwI7cIrsxrS1k2saSaigbgmnLTUGth/0plTvruPesBc5L9cKApX11ItqL6wG4ODO+XIFZTJ0k0veV6DrMZhCgJ2YwVJ5aiB1SyW5dtpaxsx9XpJdbe6+rTwZU+D4LFlAm6l1TdwnpwNmHklT8jvU+AQqAjRSim9CA9prxPWZa1rB1tDL2kve/FsN9o3bBMSbvMIAZ3P2NKxn5HLGnzOcUy5R7T+bagQigC3ekwVehbw/rHF2PUtBRSJh/jPToID3L3+BcZ2OerNysnONolqtE6Vj5YbHGL0ELBU4nQ2yKeJyDsChlgBohscJmdWe1W78B1HT/JawN6zMbxA1HslI6W75/imYrt0/FYn7v/eWPqacb/UOtJyCvxzNV4LUTvpkONOPcU3L+rZBzTSKNsBJDZlbd1MGzEtE6rul9bRuRIWviQnFsIKs9EukRChunhP+qZednICAJBe0WlpsyR8HJ50y2sTR4BPiQuYrMnpOLBj7BpG15nMQoshyFs3l6FDLvWLpd1GR21uc8=
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 8xt/V5ZdDcWwGlyL7jpxsl0It0Or/k3FMUpEcylvA9+5G3IdaIRSDwuO5ls4XwEWpDcGKNwF3RdIjCn49F6TB1RIa4YEaVcxyMiveGsDhXJ4EoGg/7D95lhBYSP+IDiYUV8XDQP4T91Jzj2vS100UmCB4Lhez8hwQ43A7AUGByCS/luDHHcSjCmGnhzxZ1g1fIK0sZVY5DGIY1sn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6CYAuexHgcL1ml38t6uQ=3D=3D?=
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: aff3ad04-9ad6-431d-5709-08daac404128
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2022 10:55:19.6768 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1P189MB1837
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: Fergus Daly <fergusd84 AT outlook DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Requirement: to move some selected files and folders under /folder1/ to /folder2/, preserving full pathnames.

Using cp with the switch --parents (taking care over syntax and importantly location $PWD) it is possible to _copy_ the
Required content across from /folder1/ to /folder2/ but there does not seem to be a matching switch for mv that would
achieve the same purpose.

One solution would be (i) to copy the required content to /folder2/ and then (ii) delete the identical content under /folder1/;
but this is expensive (one might not even have the disk space to do it) and it seems seriously unsatisfactory and not without risk
to have to copy folders and files (possibly huge) when all one wants to do is to change the {pathname} to them.

Question 1
Would the command (or something like it, again with care over syntax and $PWD)
$ rsync -axuv --progress {pathto}/folder1/{content} {pathto}/folder2/   
do the trick? Or is the very existence of the switch
$ rsync -axuv --remove-source-files --progress {pathto}/folder1/{content} {pathto}/folder2/
indicative that here too the "move" is achieved through a two-stage "copy-then-delete" operation?

Question 2
If rsync can provide a genuine "move" capability then is installing the rsync package adequate to the purpose;
or would librsync-devel and/or librsync2 packages need to be installed also?

Question 3
If not rsync, is there any operation for which "move" can be achieved without involving "copy-then-delete"? 

Thank you for any assistance.


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019