delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/09:50:35

X-Spam-Check-By: sourceware.org
X-AuditID: c1b4fb3c-aa4eebb0000073d5-54-46680d0b6c27
X-Server: Advanced Direct Remailer
Message-ID: <46680CF1.6020708@ericsson.com>
Date: Thu, 07 Jun 2007 15:49:37 +0200
From: "Nenad Antic (KI/EAB)" <nenad DOT antic AT ericsson DOT com>
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
To: Cygwin mailing list <cygwin AT cygwin DOT com>
Subject: Re: replicating my cygwin install on a different machine
References: <f47c8t$hem$1 AT sea DOT gmane DOT org> <4667FA1C DOT 8000102 AT ericsson DOT com> <20070607125658 DOT GC32095 AT trixie DOT casa DOT cgf DOT cx>
In-Reply-To: <20070607125658.GC32095@trixie.casa.cgf.cx>
X-IsSubscribed: yes
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

[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.
>
> cgf
>
>   

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?

But then one might have things like postgresql and mysql file structures 
(like I do) that tar can't access (even if run as SYSTEM). The saveacl 
program with the -usepriv switch gets those as well. What about ssh 
protected keys?

/nenad





--
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