From owner-freebsd-hackers Mon Sep 30 5:14:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3787D37B401 for ; Mon, 30 Sep 2002 05:14:43 -0700 (PDT) Received: from hotmail.com (f17.law10.hotmail.com [64.4.15.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3DB843E3B for ; Mon, 30 Sep 2002 05:14:42 -0700 (PDT) (envelope-from andrew__nelson@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Sep 2002 05:14:42 -0700 Received: from 203.12.22.18 by lw10fd.law10.hotmail.msn.com with HTTP; Mon, 30 Sep 2002 12:14:42 GMT X-Originating-IP: [203.12.22.18] From: "Andrew Nelson" To: freebsd-hackers@freebsd.org Subject: using tar --exclude in FreeBSD.. Date: Mon, 30 Sep 2002 22:14:42 +1000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Sep 2002 12:14:42.0939 (UTC) FILETIME=[F53B2CB0:01C2687A] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm having trouble using tar with simple exclusion rules.. I'd like to be able to run something like this: tar cfvzp etc-backup.tgz /etc/ but exclude all *.gz files. I can only the --exclude syntax of tar if I leave off the -vzp options. Why doesn't the following work? tar cfvzp --exclude="*.gz" usr-backup.tgz /etc/ Thanks, Andrew. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message