tar --listed-incremental?

L Vogtmann vmann at vmann.net
Wed Jan 3 21:43:55 PST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey everyone,

Has anyone gotten tar's -g or -G options to work correctly?  It appears to 
make the archive and the SNAPSHOT file correctly (I don't know exactly how 
the SNAPSHOT file is supposed to look, but it looks alright.)  But when I try 
to restore using the same snapshot file and archive, I get all sorts of weird 
parent directories for the member of the archive.

To specify:

$ ls -lR temp/
temp:
total 2
drwxr-xr-x   2 vmann    users          72 Jan  3 20:53 boot
drwxr-xr-x   3 vmann    users          72 Jan  3 20:12 etc
drwxr-xr-x   3 vmann    users          72 Jan  3 20:12 mnt
drwxr-xr-x   2 vmann    users          72 Jan  3 20:36 proc
 
temp/boot:
total 0
- -rw-r--r--   1 vmann    users           0 Jan  3 20:53 testboot
 
temp/etc:
total 0
drwxr-xr-x   2 vmann    users          72 Jan  3 21:31 dump
 
temp/etc/dump:
total 4
- -rw-r--r--   1 vmann    users          19 Jan  3 20:37 exclude
 
temp/mnt:
total 0
drwxr-xr-x   2 vmann    users          80 Jan  3 20:53 backup
 
temp/mnt/backup:
total 0
- -rw-r--r--   1 vmann    users           0 Jan  3 20:53 testmntbackup
 
temp/proc:
total 0
- -rw-r--r--   1 vmann    users           0 Jan  3 20:36 testproc

$ tar -cvvf archive.tar -g temp/etc/dump/increment temp/
tar: Directory temp/etc is new
tar: Directory temp/mnt is new
tar: Directory temp/boot is new
tar: Directory temp/proc is new
tar: Directory temp/etc/dump is new
tar: Directory temp/mnt/backup is new
drwxr-xr-x vmann/users       0 2001-01-03 20:36 temp/
drwxr-xr-x vmann/users       0 2001-01-03 20:53 temp/boot/
drwxr-xr-x vmann/users       0 2001-01-03 21:35 temp/etc/
drwxr-xr-x vmann/users       0 2001-01-03 21:36 temp/etc/dump/
drwxr-xr-x vmann/users       0 2001-01-03 20:12 temp/mnt/
drwxr-xr-x vmann/users       0 2001-01-03 20:53 temp/mnt/backup/
drwxr-xr-x vmann/users       0 2001-01-03 20:36 temp/proc/
- -rw-r--r-- vmann/users       0 2001-01-03 20:53 temp/boot/testboot
- -rw-r--r-- vmann/users      19 2001-01-03 20:37 temp/etc/dump/exclude
- -rw-r--r-- vmann/users       0 2001-01-03 20:53 temp/mnt/backup/testmntbackup
- -rw-r--r-- vmann/users       0 2001-01-03 20:36 temp/proc/testproc

$ tar xvf archive.tar -g temp/etc/dump/increment
07223732201/temp/
07224774225/temp/boot/
07224774006/temp/etc/
07224774030/temp/etc/dump/
07224774050/temp/mnt/
07224774050/temp/mnt/backup/
07224776663/temp/proc/
07225000661/temp/boot/testboot
07225005402/temp/etc/dump/exclude
07225000714/temp/mnt/backup/testmntbackup
07224776675/temp/proc/testproc

$ ls -R
..:
07223732201  07224774030  07224774225  07224776675  07225000714 
07224774006  07224774050  07224776663  07225000661  07225005402 archive.tar  temp

07223732201:
temp

07223732201/temp:

07224774006:
temp

07224774006/temp:
etc

07224774006/temp/etc:

07224774030:
temp

07224774030/temp:
etc

07224774030/temp/etc:
dump

07224774030/temp/etc/dump:

07224774050:
temp

07224774050/temp:
mnt

07224774050/temp/mnt:
backup

07224774050/temp/mnt/backup:

07224774225:
temp

07224774225/temp:
boot

07224774225/temp/boot:

07224776663:
temp

07224776663/temp:
proc

07224776663/temp/proc:

07224776675:
temp

07224776675/temp:
proc

07224776675/temp/proc:
testproc

07225000661:
temp

07225000661/temp:
boot

07225000661/temp/boot:
testboot

07225000714:
temp

07225000714/temp:
mnt
 
07225000714/temp/mnt:
backup
 
07225000714/temp/mnt/backup:
testmntbackup
 
07225005402:
temp
 
07225005402/temp:
etc
 
07225005402/temp/etc:
dump
 
07225005402/temp/etc/dump:
exclude
 
temp:
boot  etc  mnt  proc
 
temp/boot:
testboot
 
temp/etc:
dump
 
temp/etc/dump:
exclude  increment
 
temp/mnt:
backup
 
temp/mnt/backup:
testmntbackup
 
temp/proc:
testproc

See what I mean?  Is this normal?  I can't make out any specific pattern to 
the numbers in the directory names.  Does everyone elses copy of tar-1.13 do 
this (or is mine broken?)  For now I'll just use fcron, a time stamp file, 
the -N switch, and a script to do incrementals, but I'd like the "claimed" 
abilities of tar to do incremental backups as is.

TIA

vmann
- -- 
GPG public key / Geek Code block available at
http://vmann.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjpUDaIACgkQ4RqxfkoM0TNKSgCgjDCEti6U9uNCcSW86gxpko2A
idAAnie9wwjXjXW+bZ43svVEpP+/oMSP
=gGgz
-----END PGP SIGNATURE-----

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list