This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Restoring Cygwin Backups with Symbolic Links
- From: LRN <lrn1986 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 07 Sep 2013 19:43:26 +0400
- Subject: Re: Restoring Cygwin Backups with Symbolic Links
- Authentication-results: sourceware.org; auth=none
- References: <CAOD8YqrnDLbmFJNbxFQp5-y0AGZRKy2Ysye8Z3p0AhugcoT=fQ at mail dot gmail dot com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07.09.2013 19:34, Dan Plassche wrote:
> Hello,
>
> I use GNU tar from Gnuwin32 to backup my Cygwin installation on
> Windows 7, but restoring breaks symbolic links. The same problem
> appears with bsdtar from gnuwin using a posix archive format.
>
> The restored link files contain the destination if you open them in an
> editor, but no they longer appear as symbolic links to the filesystem
> (e.g. with ls -l). For example, /etc/alternatives becomes a set of
> text files.
>
> The only solutions I've found are to either dereference the links with
> tar -h or to reinstall all previously installed packages using the
> Cygwin installer. The installer is able to pickup what I have
> installed, so I can just click the global reinstall, but I feel like
> there must be a better way.
>
> I'd appreciate suggestions for alternatives or pointers to fixing the
> issue with tar.
Use Cygwin tar to make backups and use Cygwin tar to restore them.
Which means that you have to keep a minimal Cygwin tar installation
(cygwin dll, tar, probably a compression program and their dependencies)
around.
- --
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
iQEcBAEBAgAGBQJSK0mdAAoJEOs4Jb6SI2Cwm4sIAMKPqoDQLYcgAYPCRKl++Fue
zuW5VAeMt+iRCFsPhRl9qG6f/2mRQ4P8AMLuQrvc92S5eK3WzCDVb8GUzuEs0fxx
gjTn5LQh7cpHEgIVoOWpKwlL3FiP+4X7i2uVJwSswxTizQx8bNu42jzh09T3OUgA
haIcPw87pyiKxE6K5MQEoS24kO5bnQlfrx2AnT0809hZqUULagEQoYFQs5KJCfbJ
mF2OYWBF9a1Yjp7kdjokimV9DekFzxxs0QgO/7MeomxX2rsB8hznRzeujEtPLYWy
TR1m7fYJPmVxFeHQ/JSOhGik2bdYzpwl2uSzmZP+zqrsvOB7Ipy2zdaq6L2paMc=
=xPo5
-----END PGP SIGNATURE-----
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple