Re: GNUtar doesn't fit my needs...

From: rakesh sharma (sharma__r_at_hotmail.com)
Date: 11/19/03


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/*



Relevant Pages

  • Re: GNUtar doesnt fit my needs...
    ... Jean-Luc BEAUDET wrote: ... > Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ... > dir BUT one subdir. ...
    (comp.unix.admin)
  • Re: GNUtar doesnt fit my needs...
    ... Jean-Luc BEAUDET wrote: ... > Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ... > dir BUT one subdir. ...
    (comp.unix.misc)
  • Re: GNUtar doesnt fit my needs...
    ... Jean-Luc BEAUDET wrote: ... > Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ... > dir BUT one subdir. ...
    (comp.unix.shell)
  • Re: GNUtar doesnt fit my needs...
    ... > Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ... > dir BUT one subdir. ... use in the exclude file: ...
    (comp.unix.shell)
  • Re: GNUtar doesnt fit my needs...
    ... > Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ... > dir BUT one subdir. ... use in the exclude file: ...
    (comp.unix.admin)