[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] Listed incremental problem...
From: |
lists-tar |
Subject: |
[Bug-tar] Listed incremental problem... |
Date: |
Mon, 7 May 2007 10:19:31 -0700 |
I'm seeing an issue with tar 1.16 (plus patch indicated below) where
--listed-incremental is sometimes not working correctly. The issue looked
similar to :
http://lists.gnu.org/archive/html/bug-tar/2007-01/msg00002.html
and I have applied the referenced patches. They did not seem to correct
the problem.
In all my backups using --listed-incremental, tar -tv shows that directories
are always included in the incremental tar archive.
However, in one particular case, the archive is empty, containing only the
label:
$ tar -tvf /home/Backups/2007_05/albums/07_incr.1.tar
V--------- 0/0 0 2007-05-07 02:01 Archive: albums 2007-05-07
incr /home/Backups/2007_05/albums/00_snapshot.snar--Volume Header--
$ ls -l /home/Backups/2007_05/albums/07_incr.1.tar
-rw-rw---- 1 mrc root 148 May 7 02:01
/home/Backups/2007_05/albums/07_incr.1.tar
$cat /home/Backups/2007_05/albums/Log:
Archive: albums 2007-05-07 incr
/home/Backups/2007_05/albums/00_snapshot.snar
$ ls -l /home/Backups/2007_05/albums/00_snapshot.snar
-rw-rw---- 1 mrc root 348 May 7 02:01
/home/Backups/2007_05/albums/00_snapshot.snar
All other archives created in the exact same fashion are larger in size, and
contain all the directories entries as expected.
The tar command is:
$ 2>&1 $tar --create --verbose --show-omitted-dirs --totals \
--absolute-names --recursion \
--label="Archive: $config $date $type $snapshot" \
--file="$archive" --listed-incremental="$snapshot"
--files-from="$configfile" --index-file=$log
$configfile is a file that contains a single directory:
/home/.../gallery/Albums
If I re-run the command, it creates a full archive; if I re-run again, it
will create the incremental archive as expected.
$ ls -l
total 307M
-rw-rw---- 1 mrc root 348 May 7 02:01 00_snapshot.snar
-rw-rw---- 1 mrc root 40K May 3 11:58 03_incr.1.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.2.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.3.tar
-rw-rw---- 1 mrc root 148 May 4 08:40 04_full.tar
-rw-rw---- 1 mrc root 306M May 4 08:45 04_incr.1.tar
-rw-rw---- 1 mrc root 148 May 5 02:01 05_incr.1.tar
-rw-rw---- 1 mrc root 148 May 6 02:01 06_incr.1.tar
-rw-rw---- 1 mrc root 148 May 7 02:01 07_incr.1.tar
-rw-rw---- 1 mrc root 100 May 7 02:01 Log
$ ls -l
total 613M
-rw-rw---- 1 mrc root 18K May 7 10:12 00_snapshot.snar
-rw-rw---- 1 mrc root 40K May 3 11:58 03_incr.1.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.2.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.3.tar
-rw-rw---- 1 mrc root 148 May 4 08:40 04_full.tar
-rw-rw---- 1 mrc root 306M May 4 08:45 04_incr.1.tar
-rw-rw---- 1 mrc root 148 May 5 02:01 05_incr.1.tar
-rw-rw---- 1 mrc root 148 May 6 02:01 06_incr.1.tar
-rw-rw---- 1 mrc root 148 May 7 02:01 07_incr.1.tar
-rw-rw---- 1 mrc root 306M May 7 10:12 07_incr.2.tar
-rw-rw---- 1 mrc root 60K May 7 10:12 Log
$ dobackups --incremental albums
Creating backup: /home/Backups/2007_05/albums/07_incr.3.tar
Total bytes written: 40960 (40KiB, 688KiB/s)
$ ls -l
total 613M
-rw-rw---- 1 mrc root 18K May 7 10:12 00_snapshot.snar
-rw-rw---- 1 mrc root 40K May 3 11:58 03_incr.1.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.2.tar
-rw-rw---- 1 mrc root 40K May 3 11:59 03_incr.3.tar
-rw-rw---- 1 mrc root 148 May 4 08:40 04_full.tar
-rw-rw---- 1 mrc root 306M May 4 08:45 04_incr.1.tar
-rw-rw---- 1 mrc root 148 May 5 02:01 05_incr.1.tar
-rw-rw---- 1 mrc root 148 May 6 02:01 06_incr.1.tar
-rw-rw---- 1 mrc root 148 May 7 02:01 07_incr.1.tar
-rw-rw---- 1 mrc root 306M May 7 10:12 07_incr.2.tar
-rw-rw---- 1 mrc root 40K May 7 10:12 07_incr.3.tar
-rw-rw---- 1 mrc root 1019 May 7 10:12 Log
$ cat Log
Archive: albums 2007-05-07 incr
/home/Backups/2007_05/albums/00_snapshot.snar
/home/.../public_html/gallery/Albums/
/home/.../public_html/gallery/Albums/.users/
/home/.../public_html/gallery/Albums/dir1/
/home/.../public_html/gallery/Albums/dir2/
/home/.../public_html/gallery/Albums/dir3/
/home/.../public_html/gallery/Albums/dir4/
/home/.../public_html/gallery/Albums/dir5/
/home/.../public_html/gallery/Albums/dir6/
/home/.../public_html/gallery/Albums/dir7/
/home/.../public_html/gallery/Albums/dir8/
/home/.../public_html/gallery/Albums/dir9/
/home/.../public_html/gallery/Albums/dir10/
/home/.../public_html/gallery/Albums/dir11/
/home/.../public_html/gallery/Albums/dir12/
/home/.../public_html/gallery/Albums/dir13/
/home/.../public_html/gallery/Albums/dir14/
/home/.../public_html/gallery/Albums/dir15/
/home/.../public_html/gallery/Albums/album01/
Any advice or way to debug ?
Thanks,
MrC