bsdtar '--exclude pattern' problems

From: Karol Kwiatkowski (freebsd_at_orchid.homeunix.org)
Date: 11/30/04

  • Next message: Juan Walker  : "Help"
    Date: Tue, 30 Nov 2004 14:31:34 +0100
    To: freebsd-questions@freebsd.org
    
    

    Hello all,

    I upgraded 5.2.1 to 5.3 recently and I'm trying to run my cron scripts
    which use tar utility (which defaults to bsdtar(1) on 5.3) and I can't
    figure out how to use '--exclude pattern' with it. It seems I'm
    missing something obvious here or bsdtar(1) is happily ignoring
    --exclude option.

    my system:
    FreeBSD 5.3-RELEASE-p1 #4: Sat Nov 27 19:37:42 CET 2004

    here's what I try to run:

    orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
     --exclude "root.backup/*" --exclude "pub/*" --exclude "ncvs/*"

    I tried '-W exclude=pattern', too:

    orchid# /usr/bin/tar -czvf /home/root.backup/test.tar.gz -C /home . \
      -W exclude="root.backup/*" -W exclude="pub/*" -W exclude="ncvs/*"

    Both commands include all directories under /home. However using
    /usr/bin/gtar works as expected.

    Any help appreciated. Thanks.

    Karol

    -- 
    Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Juan Walker  : "Help"

    Relevant Pages

    • Re: Random Freeze
      ... > but the problem persists. ... freebsd-current and searching the archives. ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
      (freebsd-questions)
    • Re: Fwd: reboot DURING a portupgrade
      ... Sounds like faulty hardware to me (or _really_ misconfigured kernel ... and/or compilation options - yeah, ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
      (freebsd-questions)
    • Debugging options in GENERIC RELENG_6 (was: Re: Canonical upgrade procedure for 6.0?)
      ... > Hi Roland! ... >>There were some messages about this on the mailing lists recently. ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
      (freebsd-questions)
    • Re: this: not found
      ... > I didnt think it would be causing it, ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
      (freebsd-questions)