bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] The --remove-files switch interferes with hardlinking data


From: Christopher Neufeld
Subject: [Bug-tar] The --remove-files switch interferes with hardlinking data
Date: Thu, 17 Jun 2004 17:40:51 -0400

If "--remove-files" is supplied to tar, files which are hardlinked together
are not recorded as such in the archive.  Here is a sequence which
demonstrates this:

$ tar --version
tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by John Gilmore and Jay Fenlason.
$ echo "hi" > link1
$ ln link1 link2
$ tar cf links.tar link1 link2
$ tar tvf links.tar
-rw-r--r-- neufeld/users     3 2004-06-17 17:22 link1
-rw-r--r-- neufeld/users     0 2004-06-17 17:22 link2 link to link1
$ rm -f links.tar
$ tar cf links.tar --remove-files link1 link2
$ tar tvf links.tar
-rw-r--r-- neufeld/users     3 2004-06-17 17:22 link1
-rw-r--r-- neufeld/users     3 2004-06-17 17:22 link2
$


-- 
Christopher Neufeld             Staff Scientist,  Levanta, Inc.
http://www.levanta.com/         Simplifying Server Consolidation
address@hidden          613.223.0289 tel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]