delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/04/16:43:19

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=ucnk
Z1HzgeWziElYcUybqx3mZ/oU80qWNw9in0D80FFZG1AMBOHHE17kDqXYgt4BtA6X
1W7zpT7IvpCx0hc5hw2zYTad9k+XuN30KhgsXWf9B86enXX70ZZvLtFMrbhiSn8P
VTxwCWwV/7svU2G3mjVL2vjOYm7S3dZXQAt1CkA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=MGW48JfG6d
B/KQqd7h6p2gsat0c=; b=k8x6yvYehYQlnl6g47Z+d0rNEg4CBMq2Mnj8KCYT3w
QslzZ0ZAN5nHKjoY4qfN/OQvuBpMbJtBmmWn7K/RptHaVHUaMSsq8kbbsBGY51S1
F2qbVQoNj4f452/GcSXe5EkRNdF4Zv68/KBt6zmrybUUBJuABT/kLsnt1ChdZK7G
M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-la0-f42.google.com
X-Received: by 10.152.178.133 with SMTP id cy5mr7122263lac.2.1428180178233; Sat, 04 Apr 2015 13:42:58 -0700 (PDT)
Subject: Re: Can I move Cygwin and Cygwin64 to a drive other than C: ?
To: cygwin AT cygwin DOT com
references: <mfga42$ee7$1 AT ger DOT gmane DOT org> <20150401084752 DOT GN13285 AT calimero DOT vinschen DOT de> <mfilln$eq0$1 AT ger DOT gmane DOT org> <20150402081749 DOT GF13285 AT calimero DOT vinschen DOT de> <CAB+hQJ7DxJ6Qye4r395Dpu+emBxnyQeZvXa56yv+iwr3UsDH=A AT mail DOT gmail DOT com> <9784082 DOT 20150404215218 AT yandex DOT ru>
From: LRN <lrn1986 AT gmail DOT com>
message-id: <55204CB4.6050101@gmail.com>
Date: Sat, 4 Apr 2015 23:42:28 +0300
user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Thunderbird/39.0a1
mime-version: 1.0
in-reply-to: <9784082.20150404215218@yandex.ru>
X-IsSubscribed: yes

--jhkgkEHlfR8fME0WqLh14Huv978vvTXP2
Content-Type: multipart/mixed;
 boundary="------------060603090108070105000209"

This is a multi-part message in MIME format.
--------------060603090108070105000209
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04.04.2015 21:52, Andrey Repin wrote:
> Greetings, Eric Pement!
>=20
>> Follow-up question for Corinna or anyone who might know the answer:
>=20
>>>> On Apr  1 03:26, Robert Miles wrote:
>>>>>> Can I move the entire Cygwin and Cygwin64 directory trees to one
>>>>>> of the nearly empty drives, without losing the extra packages I've
>>>>>> already downloaded and the files I've created?
>>>>>
>>>>> Robocopy allows to copy an entire Cygwin tree while keeping all
>>>>> permissions intact.  I had good luck with something along the
>>>>> lines of
>>>>>
>>>>>   robocopy C:\cygwin64 D:\cygwin64 /e /purge /z /copyall /sl
>> . . .
>> With an added comment that
>>> I *did* move Cygwin installations using
>>> robocopy and the above works for me.  In an elevated shell.
>=20
>> I recently needed to move a Cygwin installation, about 6 GB, to
>> another drive accessible only on a network file system. Due to the
>> number of files, copying everything would have taken a week or more,
>> because everything slows down when the number of files increases.
>=20
>> The solution I ultimately took was not the best. I compressed
>> everything into a single *.7z (7-zip) archive, moved the single
>> archive across the network, and uncompressed the *.7z archive on the
>> target machine.
>=20
>> Although the total time was much, much faster (maybe 5 or 6 hours,
>> including 30 minutes to uncompress the archive), all my file
>> permissions were set to the same value, regardless of what they had
>> been previously, and any extended attributes were lost entirely.
>=20
>> I didn't like it, but I had no realistic alternative.
>=20
>> For future resource, what is the best way to archive a Cygwin
>> installation into a single file, which will preserve all file
>> properties and permissions, so that the archive can be transferred to
>> another location? (For the sake of clarity, presume that Cygwin does
>> NOT exist in the target location, so a non-Cygwin tool must be used to
>> expand the archive.)
>=20
> About any sane modern archiving tool can read TAR archives.
> And most of them understand gz/xz/bz2 compression.
> You could have used any of that to unpack Cygwin to get a bootstrap
> environment, then use that environment to unpack the tar with all permisi=
sons
> restored.

Agreed. I do this regularly (for a different reason), and all you need is a
small subset of Cygwin that can support tar and gz/bz2/xz/whatever you use =
to
compress the files. My subset is 21 megabytes when uncompressed; in your ca=
se
it can be much smaller, as i also have wget and its dependencies, and i'm
forming that subset automatically by unpacking packages (which means a lot =
of
unneeded files are installed). You may need to run some kind of chown/chmod
combo after unpacking that subset.

Another interesting scenario is to use icacls to save ACLs of files, then u=
se
it on target machine to restore them.

Also, you can just *install* a minimal set of Cygwin packages on the target
machine normally.



--=20
O< ascii ribbon - stop html email! - www.asciiribbon.org

--------------060603090108070105000209
Content-Type: application/pgp-keys;
 name="0x922360B0.asc"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="0x922360B0.asc"

-----BEGIN PGP PUBLIC KEY BLOCK-----=0A=
Version: GnuPG v1.4.11 (MingW32)=0A=
=0A=
mQENBE48DHkBCADjAv/EeFMN+i5XDN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ii=0A=
M9pICELT0d3nB5iDFCQb3oiXdRitDJJtZ97vOUE+xpUeYTcHXZyLmXYyMA7cFa/b=0A=
wRwj/5xofXYE0WlnHDn+0QOTf1BOGaWH1eZqYYBVKegKXW65Y7UOU4f0pZQUQ+FQ=0A=
wbwnSDlFuJPKA5MDgDczqtAVtNsAEQEAAYkBJQQYAQIADwUCTjwMeQIbDAUJCWYB=0A=
gAAKCRDrOCW+kiNgsJ2FCACaycPmmvwar2FwTbT+/OFM9rt9KQ6JCldNSePGNzHE=0A=
k0WBu5HyzgGcuOqoQSIwPHGnu2zkZl0PMW/WW9648a4OBuK08zNmypHXQw3fG0nG=0A=
KNsO6j86tOLINS6p/P4vMcF8Fz6ZdIwSj8oXnuku0C0nkLB/ja/VZk1wcI30ulJF=0A=
A2EhgLWIXZaTBlWR4KitGiGL7yzpUzBarPE8YFZLF+rfqu7NlxeG3NbBA/5UmH6r=0A=
FL5Cva/ajOJW2CtGyuROTYhqBfolxZtfSHHj1wOAlc+dA0utIW4NDbIyZxCoxDTF=0A=
/lUIjgj/Xu0IRIsX5m6TbBl40LH81JI0g1750FJfP4de=0A=
=3DaWCf=0A=
-----END PGP PUBLIC KEY BLOCK-----=0A=

--------------060603090108070105000209--

--jhkgkEHlfR8fME0WqLh14Huv978vvTXP2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJVIEy3AAoJEOs4Jb6SI2CwXF8H/3tZy6j/5NIVj1AYBuvi273O
b7S0jxrNbLOrB20vAHLQ9yEUgQFj0M0WW3sDIOKJP+MN68nitEJjVZELFNrriQm/
ruQh2/RQe1Ovnb7p7rQ/iRyvOIwTgAZF/3tZ1HgFJU7QotYpOevcJrgjwh18oe5g
fzN0fSkldlrc2q+M8cRcVFV6vTi7gaV1dvZPcAdbxqNCHKMbAwuSZ69Xb10KBh2C
JjDuIo74RqPaEqLRr/44zCUdwKvorGHgfmYnoq3d8+79XpRWRpejy0hGbDWJL5mK
xlLY5sRJaqw8vl5P+ORs6DK81JPOH8wkngTVNy4aKZjfS7M6AXsQjmweuWraywk=
=BOf7
-----END PGP SIGNATURE-----

--jhkgkEHlfR8fME0WqLh14Huv978vvTXP2--

- Raw text -


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