Tar Option --listed-incremental

Sven Anders <[email protected]> Mon, 9 Oct 2006 13:22:36 +0200
Newsgroups gmane.comp.archivers.star.user
Message-ID <[email protected]>
Hi,
i had to write a gui for a backup-utility using star. 

At the moment our backup solution is using tar and the
 --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.

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.


Best regards 
Sven Anders



-- 
 Sven Anders
 
 digitec GmbH
 Amsinckstraße 57
 20097 Hamburg

 Telefon:  +49 / 40-23776-135
 Fax:      +49 / 40-23776-200
 Email:    [email protected]

-------------wichtiger-Hinweis-------------

 Die Kommunikation mit digitec GmbH per 
 'e-mail' dient nur dem Zweck der schnellen
 Information.
 Rechtsverbindliche Absprachen kommen
 über dieses Medium nicht zustande !

-------------important-notice--------------

 Communication with digitec GmbH via e-mail
 is for quick information purposes only.
 This medium is not to be used for the
 exchange of legally-binding statements !