bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Problem with --listed-incremental and --one-file-system


From: Chris Schanzle
Subject: [Bug-tar] Problem with --listed-incremental and --one-file-system
Date: Mon, 05 Apr 2004 12:39:46 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316

While doing a test disaster recovery with a Fedora Linux box that has /boot and / as separate filesystems, I discovered that during the restore of the first incremental, the contents of /boot were removed. Below is a similar test to illustrate my problem. Did I find a bug or just a new mistake in my methods?

cd /tmp
rm -rf test*.tar state? test/ restore/
mkdir -p test/loop
mount -t tmpfs -o size=64k none /tmp/test/loop
touch test/file1 test/loop/loop1

find test -ls
661169    0 drwxr-xr-x   3 root     root           96 Mar 23 12:01 test
20919878 0 drwxrwxrwt 2 root root 60 Mar 23 12:01 test/loop 20919894 0 -rw-r--r-- 1 root root 0 Mar 23 12:01 test/loop/loop1 674653 0 -rw-r--r-- 1 root root 0 Mar 23 12:01 test/file1

tar cvlSfgC /tmp/test-full.tar /tmp/state1 /tmp/test loop .
tar: ./loop: Directory is new
./
loop/
./loop/
./file1
loop/loop1

cp -a /tmp/state1 /tmp/state2
tar cvlSfgC /tmp/test-inc.tar /tmp/state2 /tmp/test loop .
./
loop/
./loop/

mkdir /tmp/restore
cd /tmp/restore
tar xvSfg /tmp/test-full.tar /tmp/state2
./
loop/
./loop/
./file1
loop/loop1

tar xvSfg /tmp/test-inc.tar /tmp/state2
./
loop/
./loop/
tar: Deleting `./loop/loop1'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^    BAD!

tar tvSfg /tmp/test-inc.tar /tmp/state2 | tr '\0' '\n'
drwxr-xr-x root/root        14 2004-03-23 12:01:51 ./
Nfile1
Dloop


drwxrwxrwt root/root         8 2004-03-23 12:01:51 loop/
Nloop1


drwxrwxrwt root/root         1 2004-03-23 12:01:51 ./loop/



Regards,

Chris Schanzle
NIST




reply via email to

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