GNUtar doesn't fit my needs...
From: Jean-Luc BEAUDET (beaudet_at_cyber.kodak.com)
Date: 11/19/03
- Next message: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Previous message: Christoph Schuch: "Re: HELP - Moving Files By Date Range"
- Next in thread: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Reply: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Reply: Michael Wang: "Re: GNUtar doesn't fit my needs..."
- Reply: Michael Zawrotny: "Re: GNUtar doesn't fit my needs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Nov 2003 11:46:40 +0100
Hi all,
Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole
dir BUT one subdir.
Assuming the following
/my/main/dir/subdir1
..................../subdir2
..................../subdir3
..................../subdir4
I'd like to GNUtar /my/main/dir with all subdirs BUT subdir1
I tried
# tar -c -v -z -P -f /tmp/backup.tgz -X /tmp/exclude.tar /my/main/dir
-P to keep leading "/"
-X pointing to the file containing the files to exclude
# cat /tmp/exclude.tar
/my/main/dir/subdir1/*
#
The command achieve with no errors, but subdir1 and all included in keep
on archiving !!!
I tried modifying the content of /tmp/exclude.tar as
my/main/dir/* - that is no leading / -
BUT the result is the same.
Any help welcome.
JLB :-)
- Next message: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Previous message: Christoph Schuch: "Re: HELP - Moving Files By Date Range"
- Next in thread: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Reply: rakesh sharma: "Re: GNUtar doesn't fit my needs..."
- Reply: Michael Wang: "Re: GNUtar doesn't fit my needs..."
- Reply: Michael Zawrotny: "Re: GNUtar doesn't fit my needs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|