Re: Tar Option --listed-incremental

[email protected] (Joerg Schilling) Tue, 10 Oct 2006 16:41:41 +0200
Newsgroups gmane.comp.archivers.star.user
Message-ID <452bb125.eyKAv3WDcNMhk+yV%[email protected]>
Sven Anders <[email protected]> wrote:

> Hi,
> i had to write a gui for a backup-utility using star. 
>
> At the moment our backup solution is using tar and the

tar does not have such an option. You are most likely talking about 
gtar.

>  --listed-incremental option. Now we must switch to star, because of 
> Posix-ACLs. I didn't find a posibility to get deleted files and directory 
> form the command-line.

As gtar has a lot of well known bugs with incremental restores, this looks like 
a good idea ;-)

> If it's not clear what we mean I`ll make a small example:
>
> PWD=`pwd`
> mkdir -p data/files/1 data/files/2 data/files/3 data/files/4 data/files/1/dir
> echo abc >data/files/1/datei
> echo abc >data/files/2/datei
> echo abc >data/files/3/datei
> echo abc >data/files/4/datei
> sleep 1
> # First Backup:
>
> star -cvz -Hexustar -acl -xdev -sparse -link-dirs -level=0 -wtardumps\
>  -tardumps=$PWD/tardumps-test  -f=full.star.gz -C $PWD/data .
>
> # Now the user is working .....
> sleep 1
> rm data/files/3/datei
> rm -rf data/files/2
>
> echo abc >data/files/neu
> echo abc>>data/files/4/datei
>
>
> # Second Backup:
>
> star -cvvvz -Hexustar -acl -xdev -sparse -link-dirs -level=1 -wtardumps \
>  -tardumps=$PWD/tardumps-test  -f=incr.star.gz -C \
>  $PWD/data . 
>
>
> Now the user wants to know which directories are in data/files at the moment 
> when  incr.star.gz was created. So he enters:
>
> star tvzf incr.star.gz
>
> Host name   vm-ucs-dev
> File system /path/to/pwd/data
> Release     star 1.5a57 (i686-pc-linux-gnu)
> Archtype    exustar
> Dumptype    partial
> Dumplevel   1
> Reflevel    0
> Dumpdate    1160390070.503974 (Mon Oct  9 12:34:30 2006)
> Refdate     1160390069.370317 (Mon Oct  9 12:34:29 2006)
> Volno       1
> Blocksize   20
>       0 drwxr-xr-x   5 san/digitec Oct  9 12:34 2006 files/
>       4 -rw-r--r--   1 san/digitec Oct  9 12:34 2006 files/neu
>       0 drwxr-xr-x   2 san/digitec Oct  9 12:34 2006 files/3/
>       8 -rw-r--r--   1 san/digitec Oct  9 12:34 2006 files/4/datei
> star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
>
>
> The user can not see that files/1 exists, but files/2 was deleted.

What is your problem?

You cannot see deleted files with the GNU tar method and you cannot
see them with the star method.

The advantage of star is that star deals with all kind of renames and
type changes correctly. Star uses the same basic method as ufsdump/ufsrestore 
use. Star finds deleted files from the inode information in the directory
meta data.


Did you already try to do an incremental restore?

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Star-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/star-users