X-Spam-Check-By: sourceware.org
Date: Thu, 7 Jun 2007 09:54:40 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: replicating my cygwin install on a different machine
Message-ID: <20070607135440.GA4644@ednor.casa1.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <f47c8t$hem$1@sea.gmane.org> <4667FA1C.8000102@ericsson.com> <20070607125658.GC32095@trixie.casa.cgf.cx> <46680CF1.6020708@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <46680CF1.6020708@ericsson.com>
User-Agent: Mutt/1.5.15 (2007-04-06)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Thu, Jun 07, 2007 at 03:49:37PM +0200, Nenad Antic (KI/EAB) wrote:
> [6/7/2007 2:56 PM] Christopher Faylor wrote:
>> On Thu, Jun 07, 2007 at 02:29:16PM +0200, Nenad Antic (KI/EAB) wrote:
>>   
>>> [6/7/2007 12:26 AM] Jerome Fong wrote:
>>>     
>>>> I was wondering if there was a way to save and duplicate my cygwin 
>>>> installation so I can replicate it on a different machine.        
>>> [snip]
>>>
>>> The following has worked for me over more than 6 computers since 99:
>>>
>>> Do
>>>
>>>    mount -m > cygwin_mount_points.bat
>>>
>>> Shut down all cygwin apps, including installed services. Archive the 
>>> entire cygwin directory with WinRAR (shareware, and so much better than 
>>> any xZip, will preserve symlinks).
>>>
>>> cd to the cygwin dir and save all ntfs file permissions using Pedelstal 
>>> Software's NTSEC suite (shareware and still available at 
>>> http://www.winsite.com/bin/Info?500000034210), more specifically using 
>>> saveacl.
>>>
>>>    saveacl -r -usepriv * cygwin_permissions.txt
>>>
>>> Use your text editor of preference and globally search and replace any 
>>> user names that have changed between the old and the new computer in 
>>> 'cygwin_permissions.txt'.
>>>
>>> Unpack the cygwin archive to your new location on the new computer.
>>>     
>>
>> That seems like a lot of work to go to when you could just use tar to 
>> create
>> the archive.  It will create files with the proper permissions.
>
> But what if the user name is changed on the new machine? What about the SIDs 
> in /etc/passwd and /etc/group? Do mean that when passwd and group are 
> regenerated and if the user names stays the same everything will have the 
> right permissions after untarring?

Yes, it should.  Just like on... linux.

It does mean that there is an extra "regenerate the passwd/group" step in
what I've previously outlined though.

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/

