Package: tar
Version: 1.22-1
Severity: wishlist

Hi Bdale,

Please pass on my following request to tar developers, which results
from soliciting comments from debian.user:
http://thread.gmane.org/gmane.linux.debian.user/354128

I.e., I hope there is a straightforward way to tar up a symbolic
linked directory as if it is a real directory.

Let me explain with an example:

 mkdir d1
 touch d1/{a,b,c}
 ln -s c d1/d
 ln -s d1 d2

I want that the result tar file looks like this:

 tar -tvzf d2.tgz
 drwxrwx--x tong/tong         0 2009-05-01 09:38 d2/
 -rw-rw---- tong/tong         0 2009-05-01 09:37 d2/a
 -rw-rw---- tong/tong         0 2009-05-01 09:37 d2/b
 -rw-rw---- tong/tong         0 2009-05-01 09:37 d2/c
 lrwxrwxrwx tong/tong         0 2009-05-01 09:38 d2/d -> c

Reason behind the request:

Simple -- I want to maintain an identical working environment across all
places, in my prime home environment, or on remote sites, on Live CDs or
their HD installations. The most important thing about the "identical" is
logical identical, as oppose to physical. I.e., I expect a certain path
name to be at a specific location, across all environments that I work
in, despite the fact that such path name might be a symlink one to other
folder on another volume with another name in my prime home environment.

Proposed solution, either

- differentiate "d2" and "d2/" as sync does,
- or add a option similar to find's -H: "Do not follow symbolic
links, except while processing the command line arguments."

Thanks

Tong

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (300, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-grml64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages tar depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
pn  ncompress                     <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to