From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 11:30:51 2003 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 2B29A16A4CE for ; Wed, 31 Dec 2003 11:30:51 -0800 (PST) Received: from makeworld.com (makeworld.com [12.15.124.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AAC643D39 for ; Wed, 31 Dec 2003 11:30:50 -0800 (PST) (envelope-from racerx@makeworld.com) Received: from fidora.verizon-dsl.net (unknown [12.15.124.131]) by makeworld.com (Postfix) with ESMTP id 70C056D; Wed, 31 Dec 2003 13:31:03 -0600 (CST) From: Chris To: "Xpression" , "FreeBSD-questions" Date: Wed, 31 Dec 2003 13:29:49 -0600 User-Agent: KMail/1.5.4 References: <000f01c3cfd3$5aa7a090$0901a8c0@bloodlust> In-Reply-To: <000f01c3cfd3$5aa7a090$0901a8c0@bloodlust> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312311329.49998.racerx@makeworld.com> Subject: Re: tar question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 19:30:51 -0000 On Wednesday 31 December 2003 1:21 pm, Xpression wrote: > Hi list, I've googled to search an aswer but no one match > mine. I want to tar all files on a directory without include > any other directory, I've tried with --exclude but no hope, > any suggestion ??? Thanks... > I dom something similar to what you ask. What I do is tar a directory and all it's contense EXCEPT one diectory. It goes something like this: tar -zcf name.tgz --exclude MP3 dirname/ Explanation: I'm tarring a dir. and excluding the dir MP3 and it's files. I'm sure you will be able to expand on this. Use man tar to see all the switches. > > _______________________________________________ > 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" -- Best regards, Chris