[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] special character in filename problem ... tar (GNU tar) 1.13.2
From: |
Rudolf Potucek |
Subject: |
[Bug-tar] special character in filename problem ... tar (GNU tar) 1.13.25 |
Date: |
Tue, 30 Dec 2003 12:04:20 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 |
Hi!
As per subject, I am trying to use tar (GNU tar) 1.13.25 for backup
purposes on a filesystem that may contain filenames with special
characters (Windoze style). The problem I am running into is this:
tar -cC source-dir source-file | tar -xC dest-dir source-file
fails if the filename contains '[' or ']' ... which would not be so bad
... it's just and escaping issue, right? Unfortunetaly, this works:
# tar -cC /home/potucek/
safe/misc/rccalcs4/r\(\[r\(rc\)\]\[\(rc\)\]\)-100-50.z | tar -xC
/mnt/archos-ext/potucek/
safe/misc/rccalcs4/r\(\\\[r\(rc\)\\\]\\\[\(rc\)\\\]\)-100-50.z
while this does not:
# tar -cC /home/potucek/
safe/misc/rccalcs4/r\(\[r\(rc\)\]\[\(rc\)\]\)-100-50.z | tar -xC
/mnt/archos-ext/potucek/
safe/misc/rccalcs4/r\(\[r\(rc\)\]\[\(rc\)\]\)-100-50.z
tar: safe/misc/rccalcs4/r([r(rc)][(rc)])-100-50.z: Not found in archive
even though a tar -t will list the file as present ... notice the
inconsistency between the 'create' and 'extract' escaping ... very
confusing ... I would call that a bug!
Rudolf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] special character in filename problem ... tar (GNU tar) 1.13.25,
Rudolf Potucek <=