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

From: Jean-Luc BEAUDET (beaudet_at_cyber.kodak.com)
Date: 11/19/03

  • Next message: Walter Peters: "Re: How can I measure the network load ?"
    Date: Wed, 19 Nov 2003 17:05:36 +0100
    
    

    Thank you for the trick, rakesh.

    But subdir1/ doesn't do the trick as subdir does !

    I'm not sure to well understand...

    Regards.

    JLB :-)

    rakesh sharma wrote:

    >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: Walter Peters: "Re: How can I measure the network load ?"

    Relevant Pages

    • Re: GNUtar doesnt fit my needs...
      ... But subdir1/ doesn't do the trick as subdir does! ... Regards. ... rakesh sharma wrote: ... >>Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ...
      (comp.unix.shell)
    • Re: GNUtar doesnt fit my needs...
      ... But subdir1/ doesn't do the trick as subdir does! ... Regards. ... rakesh sharma wrote: ... >>Working under SOLARIS 5.6 i'm trying to GNUtar the content of a whole ...
      (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.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)