Best way to backup a cygwin installation ?

Igor Pechtchanski
Mon Sep 29 14:14:00 GMT 2003

On Mon, 29 Sep 2003, Olaf Foellinger wrote:

> Hi,
> what is the best way to backup a cygwin installation ? I have a working
> installation here on w2k with a size of appr. 700 MB. I use ntsec and I
> wonder which is the best way:
> - - copy the file sin windows ?
> - - make a tar.gz archive under cygwin ?
> I want a possibility to turn back to this version in case the upgrade to
> 1.5.x fails.
> Gruss Olaf Foellinger


You probably want to make a tar archive under Cygwin to keep the
permissions and the ownership.  To make sure you can actually extract that
archive, you should make extra copies of tar.exe, gzip.exe, cygwin1.dll,
cygiconv-2.dll, and cygintl-2.dll into your backup directory.  When you
extract, make sure to explicitly use the tar from the backup directory,
and that no other Cygwin processes are running at the time.

It would be a good idea to also back up your mount table in a file called
"mounts.bat" in the same directory (by using the output of "mount -m"),
and then restore them after untarring the backup.  You will need to make
an extra copy of mount.exe (no dependences).  So, your backup directory
will probably look like:


Hope this helps,
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list