bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] little problem with tar 1.15.1


From: MeGaBrAiN
Subject: [Bug-tar] little problem with tar 1.15.1
Date: Wed, 18 Jul 2007 11:55:16 +0600

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:

address@hidden Temporary]$ mkdir test1
address@hidden Temporary]$ cd test1
address@hidden test1]$ touch bnbb1
address@hidden test1]$ tar cvf here.tar ./ --remove-files
./
tar: ./here.tar: file is the archive; not dumped
./bnbb1
address@hidden test1]$
address@hidden test1]$
address@hidden 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

address@hidden test1]$ tar cvjf here.tar.bz2 ./ --remove-files
./
./bnbb1
./here.tar.bz2 <-- oops
address@hidden test1]$
address@hidden 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

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