From owner-freebsd-questions Tue Aug 1 5: 7:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id 3C5A637B5AF for ; Tue, 1 Aug 2000 05:07:11 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id IAA05522 for ; Tue, 1 Aug 2000 08:04:48 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <3986BD05.3D19504D@wmptl.com> Date: Tue, 01 Aug 2000 08:05:25 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: excluding a file/dir from a tar file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I know the flag is --exclude, but where exactly do I put the flag in? Could someone post an example of a working version of this: tar cvzf --exclude /server --exclude /mail /server/master.tgz / I want to exclude the two partitions to keep the tarball small enough to record to a cdrom for backup purposes, but everytime I use the --exclude option, I end up with a new file created with the name '--exclude'. Seeing as how rm doesn't like filenames with a '-' prepended to them, I've been having some difficulty trying to clean uo 600~meg '--exclude' files from my system. I just want to create a tar file of the root, without including anything in /server, or /mail. Suggestions? -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message