Date: Fri, 8 Jul 2005 08:29:46 -0400 From: Hornet <hornetmadness@gmail.com> To: Drew Tomlinson <drew@mykitchentable.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: tar Syntax Help Message-ID: <f42935a60507080529634b2ae6@mail.gmail.com> In-Reply-To: <42CDF112.5070209@mykitchentable.net> References: <42CDF112.5070209@mykitchentable.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/7/05, Drew Tomlinson <drew@mykitchentable.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f42935a60507080529634b2ae6>
