bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] tar doesn't handle -X -T and -g Options correctly


From: Marc Richter
Subject: [Bug-tar] tar doesn't handle -X -T and -g Options correctly
Date: Fri, 10 Oct 2008 14:56:45 +0200
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Hi there!

There are three options to GNU tar which are not handled correctly when
they are ussued together:

-g, --listed-incremental F
              create/list/extract new GNU-format incremental backup
-X, --exclude-from=FILE
              exclude files matching patterns listed in FILE
-T, --files-from F
              get names to extract or archive from file F

My issued Command is:

tar cf /mnt/hdd/archive.tar -g /mnt/hdd/archive.tar.snar -X
/mnt/hdd/tar_exclude_list -T /mnt/hdd/tar_include_list --preserve
--atime-preserve --same-owner

My /mnt/hdd/tar_exclude_list contains:

*.log
*typo3_src-*.tar.gz
*/typo3temp
/backup_nas
/dev
/media
/mnt
/opt/suse
/proc
/server/conf
/server/data/db
/server/data/transfer
/server/logs
/server/service/www/apache*
/server/src
/sys
/tmp
/var/run
/var/spool
/var/tmp

My /mnt/hdd/tar_include_list contains:

/export
/home
/root
/server

When I issue the tar - Command, an archive which only contains the
directory, which is written in the first line from my
/mnt/hdd/tar_include_list . The /mnt/hdd/archive.tar.snar file only
contains records from this first folder. The first entry is Archived and
written to the snar - file recursively, but all the following entries
from the /mnt/hdd/tar_include_list file (/home , /root and /server) are
completely ignored.
When I issue the tar - Command this way:
tar cf /mnt/hdd/archive.tar -g /mnt/hdd/archive.tar.snar --preserve
--atime-preserve --same-owner /export

and after that this way:

tar rf /mnt/hdd/archive.tar -g /mnt/hdd/archive.tar.snar --preserve
--atime-preserve --same-owner /home

The files in /home are recursively added to the archive
/mnt/hdd/archive.tar , but the snar - file don't become updated.

I think this is a Bug, somewhere in GNU tar's -g option, because the
command issued without -g works perfect:
tar cf /mnt/hdd/archive.tar -X /mnt/hdd/tar_exclude_list -T
/mnt/hdd/tar_include_list --preserve --atime-preserve --same-owner

I've tried GNU tar versions 1.15.1 and 1.17 . They behave the same as
described above.

Do I miss something here, or is this a Bug within GNU tar?

Greets,
Marc

-- 
Marketing Factory Consulting GmbH  *   mailto:address@hidden
Stephanienstrasse 36               *          Tel.: +49 211-361176-44
D-40211 Duesseldorf, Germany       *          Fax : +49 211-361176-45
Amtsgericht Duesseldorf HRB 53971  * http://www.marketing-factory.de/

Geschaeftsfuehrer:             Peter Faisst   |   Katja Faisst
Karoline Steinfatt   |   Christoph Allefeld   |   Markus M. Kimmel




reply via email to

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