From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 12:29:47 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6ECBD16A41C for ; Fri, 8 Jul 2005 12:29:47 +0000 (GMT) (envelope-from hornetmadness@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE01C43D49 for ; Fri, 8 Jul 2005 12:29:46 +0000 (GMT) (envelope-from hornetmadness@gmail.com) Received: by rproxy.gmail.com with SMTP id 1so120086rny for ; Fri, 08 Jul 2005 05:29:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T1cWy7+Mdh8tY87PCKDtaHGd2AtAZxoBbtjQ5pmRILF4AQ6EC+YHuzx0cbA1RqTpJbiUCI3q398g1S3qNcH5KnEe+1e99SWMCwC3xl6L/2yYhLXwsAtTY++TIxxK+S46HSwtzOxIvXI+Ka2X7o1kg0aIOXC+eYE8o401cEpsLkY= Received: by 10.38.6.14 with SMTP id 14mr629578rnf; Fri, 08 Jul 2005 05:29:46 -0700 (PDT) Received: by 10.38.8.44 with HTTP; Fri, 8 Jul 2005 05:29:46 -0700 (PDT) Message-ID: Date: Fri, 8 Jul 2005 08:29:46 -0400 From: Hornet To: Drew Tomlinson In-Reply-To: <42CDF112.5070209@mykitchentable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42CDF112.5070209@mykitchentable.net> Cc: FreeBSD Questions Subject: Re: tar Syntax Help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hornet List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 12:29:47 -0000 On 7/7/05, Drew Tomlinson wrote: > I'm trying to copy an entire file system while using an exclude file to > avoid copying things such as /dev, /proc, etc. I've read the man page > and found the -X or --exclude-from tar option. I've create a file > called /exclude.list. It contains lines such as: >=20 > /exclude.list > /dev > /proc >=20 > But I can't figure out how to form the correct command line. I > basically want to do this: >=20 > tar -cvf - --exclude-from /exclude.list -C / . | tar xpf - -C . >=20 > I've search the web and found examples that look similar to the above > but this does not work for me. tar attempts to copy /dev and I get all > the associated errors. I've tried other placements of either "-X", "X", > and "--exclude from" on the command line various things happen from it > just being ignored to tar thinking I want to create and archive named > "-X", etc., to tar trying to add a file named "-X", etc. to the current > archive. I'm at a loss. >=20 > I'm using 4.11 and trying to make a good backup before upgrading to > 5.4. Can anyone tell me the secret incantation to make this work? >=20 > Thanks, >=20 > Drew >=20 > -- > Visit The Alchemist's Warehouse > Magic Tricks, DVDs, Videos, Books, & More! >=20 > http://www.alchemistswarehouse.com >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20 I wrote this years ago, http://www.justlinux.com/forum/showpost.php?p=3D294384&postcount=3D1