public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Restoring Cygwin Backups with Symbolic Links
@ 2013-09-07 15:34 Dan Plassche
  2013-09-07 15:43 ` LRN
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Plassche @ 2013-09-07 15:34 UTC (permalink / raw)
  To: cygwin

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.


Thanks,

Dan Plassche

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Restoring Cygwin Backups with Symbolic Links
  2013-09-07 15:34 Restoring Cygwin Backups with Symbolic Links Dan Plassche
@ 2013-09-07 15:43 ` LRN
  0 siblings, 0 replies; 2+ messages in thread
From: LRN @ 2013-09-07 15:43 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-07 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-07 15:34 Restoring Cygwin Backups with Symbolic Links Dan Plassche
2013-09-07 15:43 ` LRN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).