On Sunday 09 March 2003 22:45, Jesse Jacobs wrote: > Hello everyone, > > I would like to backup my system minus some dirs. > > I print to a file the files/dirs i'd like to skip > > mount /dev/hda1 /boot > find /proc > /tar.test.txt > find /exports >> /tar.test.txt > tar -cvjpsPf -X /tar.test.txt / /exports/backup-full-090303.tar.bz2 > > But when the archive starts the specified dirs are included :) > > I hope to use this for compiling a optimised i686/athlon-xp base to be > used for my own rapid deployment. > > Also I've noticed the archives in /usr/portage/distfiles/*.tbz2 or tar.bz2 > I was hoping I could tar these and extract to the fresh base for a little > bandwith savings. > > Jesse Jacobs.
Hi Jesse, You don't need to specify each file in the excludes file. I usually do it with --exclude switch and specify wild cards. I advise against using -P as it can lead to accidents. If you untar it as root by accident it'll overwrite your current system (since / is included). Let tar strip the leading / and untar in the root dir. -p is not really needed at this stage AFAIK, as it affects extract, not creation. You might want to revers the order since usually after 'f' is passed tar is expecting the file name. Try this for example: tar -cvjpf /exports/backup-full-090303.tar.bz2 --directory / --exclude=proc --exclude=exports You can exclude other dirs as well (tmp/* contents for example). There are many tutorials on the net about it, Google will surely find some for you. -- Meir Kriheli MKsoft systems -- [EMAIL PROTECTED] mailing list