From owner-freebsd-questions@FreeBSD.ORG Tue Nov 30 13:31:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B865A16A4CE for ; Tue, 30 Nov 2004 13:31:38 +0000 (GMT) Received: from orchid.homeunix.org (awf195.neoplus.adsl.tpnet.pl [83.27.65.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8FCC43D49 for ; Tue, 30 Nov 2004 13:31:37 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.1/8.13.1) with ESMTP id iAUDVYn5051266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Nov 2004 14:31:35 +0100 (CET) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <41AC7636.2050605@orchid.homeunix.org> Date: Tue, 30 Nov 2004 14:31:34 +0100 From: Karol Kwiatkowski User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/611/Mon Nov 29 15:02:55 2004 clamav-milter version 0.80j on orchid.homeunix.org X-Virus-Status: Clean Subject: bsdtar '--exclude pattern' problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 13:31:38 -0000 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