X-Spam-Check-By: sourceware.org Date: Wed, 6 Jun 2007 19:25:38 -0400 From: Christopher Faylor 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: <31b7d2790706061603i425caf0ag1444f17d47137675 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/