delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/06/19:26:00

X-Spam-Check-By: sourceware.org
Date: Wed, 6 Jun 2007 19:25:38 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: replicating my cygwin install on a different machine
Message-ID: <20070606232538.GA7576@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <f47c8t$hem$1 AT sea DOT gmane DOT org> <31b7d2790706061603i425caf0ag1444f17d47137675 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <31b7d2790706061603i425caf0ag1444f17d47137675@mail.gmail.com>
User-Agent: Mutt/1.5.15 (2007-04-06)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Wed, Jun 06, 2007 at 06:03:22PM -0500, DePriest, Jason R. wrote:
> On 6/6/07, Jerome Fong  wrote:
>> Hi There,
>>
>> I was wondering if there was a way to save and duplicate my cygwin
>> installation so I can replicate it on a different machine.  The idea is,
>> I have scripts and programs developed and tested on my cygwin install.
>> I want to be able to deploy everything that I am running on my machine.
>>
>> I'm not sure if the setup.exe will get me what I want since older
>> versions of packages are not always readily available (dependent on the
>> server).  Also, I want to be able to provide the operations team with a
>> zip file or some kind of installation package to replicate on each
>> server.   The idea is to avoid  new downloads and use what I have until
>> I need to upgrade.
>
> Assuming you use the same drive letters and directory structure, you
> can just zip up your cygwin data (preferably with something that can
> maintain file permissions) and dump HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus

I would not suggest using "zip" as the mechanism for backing up and
restoring.  As has been noted 10497 times in this mailing list Windows
ZIP does not properly save the bits needed to recreate things like
symlinks.

And, we've also mentioned at least as many times that you DO NOT MANIPULATE
THE REGISTRY DIRECTLY.  Use "mount -m" to create a .bat file suitable for
recreating the mount table.

So, the proper way to do this is to copy cygwin1.dll, tar.exe, mount.exe
to the other computer, in a temporary directory.  Run the .bat file
created by mount -m to recreate the mount table and use tar.exe to
extract the tar ball created.

cgf

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

- Raw text -


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