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

From: Michael Zawrotny (zawrotny_at_jaguar.sb.fsu.edu)
Date: 11/21/03

  • Next message: Claudio Lapidus: "udp input queue"
    Date: 21 Nov 2003 13:24:11 GMT
    
    

    Jean-Luc BEAUDET <beaudet@cyber.kodak.com> wrote:
    > 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

    Did you try

    tar -c -v -z -P -f /tmp/backup.tgz --exclude=/my/main/dir/subdir1 \
        /my/main/dir

    It works for me.

    Mike

    -- 
    Michael Zawrotny
    Institute of Molecular Biophysics
    Florida State University                | email:  zawrotny@sb.fsu.edu
    Tallahassee, FL 32306-4380              | phone:  (850) 644-0069
    

  • Next message: Claudio Lapidus: "udp input queue"

    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.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...
      ... 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...
      ... 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)