Hello..

I've search through bug list archive and didn't find any suitable..

I have fedora (7) box with tar 1.15.1 on board..

command:

tar cvf archive.tar ./ --remove-files

will perfectly create tar file and remove all archived files..

but

tar cvjf archive.tar.bz2 ./ --remove-files

will also remove archive.tar.bz2 couse it look like tar won't recognize
*.tar.bz2 as own archive

little dump:

[EMAIL PROTECTED] Temporary]$ mkdir test1
[EMAIL PROTECTED] Temporary]$ cd test1
[EMAIL PROTECTED] test1]$ touch bnbb1
[EMAIL PROTECTED] test1]$ *tar cvf here.tar ./ --remove-files*
./
tar: ./here.tar: file* is the archive*; not dumped
./bnbb1
[EMAIL PROTECTED] test1]$
[EMAIL PROTECTED] test1]$
[EMAIL PROTECTED] test1]$ ls -la
total 20
drwxrwxr-x 2 admin admin 4096 2007-07-18 11:38 .
drwxrwxr-x 9 admin admin 4096 2007-07-18 11:37 ..
-rw-rw-r-- 1 admin admin 10240 2007-07-18 11:38 *here.tar

**
*same with -j option

[EMAIL PROTECTED] test1]$ tar cvjf here.tar.bz2 ./ --remove-files
./
./bnbb1
./*here.tar.bz2 <-- oops*
[EMAIL PROTECTED] test1]$
[EMAIL PROTECTED] test1]$ ls -la
total 8
drwxrwxr-x 2 admin admin 4096 2007-07-18 11:38 .
drwxrwxr-x 9 admin admin 4096 2007-07-18 11:37 ..


This behaviour was quite shocking for me cause i've lost a big bunch of
data..

Sincerely,
*nix fan

Reply via email to