Date: Thu, 30 Aug 2007 10:58:14 -0400 From: "Jim Stapleton" <stapleton.41@gmail.com> To: freebsd-questions@freebsd.org Subject: file patterns and tar Message-ID: <80f4f2b20708300758v56c71856u1ce737a0a2caff9e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I want to create a backup of some parts of my system, but not everything ex, I want to exclude /bin, and /usr/bin, but not /usr/local/bin - same for *sbin, *lib, and *libexec however, if I used tar -jcvf test.tbz \ --exclude /bin --exclude /usr/bin \ --exclude /dev --exclude /var --exclude /tmp \ --exclude /root --exclude /proc / | \ tar -tf - | grep bin I don't get /usr/local/bin files. I coudln't find more help in tar, either through tar --help or man tar, though I know it says that it is excluding leading slashes in file names (which is probably causing this issue). What should I do, short of running tars for /, /usr/ and /usr/local, or is that the only real option? But then there is always the possiblility of missing something because its name just happens to contain bin, or more likely contains lib. Thanks, -Jim Stapleton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20708300758v56c71856u1ce737a0a2caff9e>