Re: GNUtar doesn't fit my needs...
From: rakesh sharma (sharma__r_at_hotmail.com)
Date: 11/19/03
- Next message: Nicolas HUYNH: "Re: How can I measure the network load ?"
- Previous message: Jean-Pierre Denis: "Re: How can I measure the network load ?"
- In reply to: Jean-Luc BEAUDET: "GNUtar doesn't fit my needs..."
- Next in thread: Jean-Luc BEAUDET: "Re: GNUtar doesn't fit my needs..."
- Reply: Jean-Luc BEAUDET: "Re: GNUtar doesn't fit my needs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Nov 2003 07:01:33 -0800
Jean-Luc BEAUDET <beaudet@cyber.kodak.com> wrote in message news:<3FBB4A10.9080200@cyber.kodak.com>...
> 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 :-)
use in the exclude file:
subdir1/
instead of,
my/main/dir/subdir1/*
- Next message: Nicolas HUYNH: "Re: How can I measure the network load ?"
- Previous message: Jean-Pierre Denis: "Re: How can I measure the network load ?"
- In reply to: Jean-Luc BEAUDET: "GNUtar doesn't fit my needs..."
- Next in thread: Jean-Luc BEAUDET: "Re: GNUtar doesn't fit my needs..."
- Reply: Jean-Luc BEAUDET: "Re: GNUtar doesn't fit my needs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|