bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Major Bug with tar and incremental backup using the -l and --l


From: Terry Barnaby
Subject: [Bug-tar] Major Bug with tar and incremental backup using the -l and --listed-incremental flags
Date: Fri, 10 Sep 2004 16:39:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803

Hi,

There has been a major bug (at least to me :) ) in tar since version 1.13.7
and it is still there in 1.14.90.

I normally perform full backups with a command similar to:

tar -c -l -f /dev/st0 --listed-incremental=stamp / /usr /dist /src /home

If I do this tar does not backup all of my systems files contained in
the separate mount points.
I have a simple example that illustrates the problem.
In this case there are two directories a and b each containing a file.
The second directory has a separate file system mounted on it (created with
a Linux loop back device). When I run this with the newer versions of
tar the files in the directory b are not backed up ....

################################################################################
#       Tar bug
################################################################################
#

setup(){
        # Create dirs
        mkdir a
        mkdir b
        
        # Create a file system
        dd if=/dev/zero of=fs count=1000; mke2fs -F fs
        
        # Mount file system
        mount -o loop fs b
        
        # Create files
        echo "Hello There" > a/filea
        echo "Hello There" > b/fileb
}

cleanup(){
        umount b
        rm -fr a b fs s
}

runTest(){
        echo "Perform Tar"
        rm -f s;
        tar -clf - -g s . ./b | tar -tf -
        echo "Perform Tar: completed"
}

setup
runTest
cleanup
--------------------------------------------------------------------------------

Terry
--
Dr Terry Barnaby                     BEAM Ltd
Phone: +44 1454 324512               Northavon Business Center, Dean Rd
Fax:   +44 1454 313172               Yate, Bristol, BS37 5NH, UK
Email: address@hidden             Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
                      "Tandems are twice the fun !"




reply via email to

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