From owner-freebsd-hackers Mon Sep 30 5:23:22 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 5CD2B37B404 for ; Mon, 30 Sep 2002 05:23:21 -0700 (PDT) Received: from mx10.mail.ru (mx10.mail.ru [194.67.57.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09CF143E77 for ; Mon, 30 Sep 2002 05:23:20 -0700 (PDT) (envelope-from voodoo_alex@mail.ru) Received: from drweb by mx10.mail.ru with drweb-scanned (Exim MX.A) id 17vza1-000MqS-00 for freebsd-hackers@FreeBSD.org; Mon, 30 Sep 2002 16:23:17 +0400 Received: from [195.170.235.196] (helo=z.millenniumrise.ru) by mx10.mail.ru with esmtp (Exim SMTP.A) id 17vzZz-000Mp4-00 for freebsd-hackers@FreeBSD.org; Mon, 30 Sep 2002 16:23:15 +0400 Date: Mon, 30 Sep 2002 16:25:01 +0400 From: =?Windows-1251?B?wOvl6vHg7eTwIM/u7+ru4g==?= X-Mailer: The Bat! (v1.53d) Reply-To: =?Windows-1251?B?wOvl6vHg7eTwIM/u7+ru4g==?= X-Priority: 3 (Normal) Message-ID: <5626682897.20020930162501@mail.ru> To: freebsd-hackers@FreeBSD.org Subject: Re: using tar --exclude in FreeBSD.. X-Sender: =?Windows-1251?B?wOvl6vHg7eTwIM/u7+ru4g==?= MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-Envelope-To: freebsd-hackers@FreeBSD.org 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 Hello Andrew, Monday, September 30, 2002, 4:14:42 PM, you wrote: AN> Hi, AN> I'm having trouble using tar with simple exclusion AN> rules.. I'd like to be able to run something like this: AN> tar cfvzp etc-backup.tgz /etc/ AN> but exclude all *.gz files. I can only the --exclude syntax AN> of tar if I leave off the -vzp options. Why doesn't the AN> following work? AN> tar cfvzp --exclude="*.gz" usr-backup.tgz /etc/ Try to use: tar --exclude="*.gz" cvzpf usr-backup.tgz /etc/ (hint: "f" - argument to pass archive file name to tar programm read man tar useful ;) -- Best regards, voodoo mailto:voodoo_alex@mail.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message