Hello everyone, First thank you for the great responses. As with any one that uses Linux I don't give up easily and used:
find / -maxdepth 1 > /tar.test.txt nano /tar.test.txt ** removed /exports,/proc,/tmp etc. ** tar cvjpf /exports/full-test-backup090303.tar.bz2 -T tar.test.txt ** this was missing directories though /exports,/proc,/tmp Not perfect, and took forever on the loaded system. Now that you have provided me with the correct syntax I'll have to redo it(another trait of Linux users seems to be the constant stride to perfection, haven't u noticed :) ). When searching, I found a great little cronjob/script for full and incremental weekly backups using tar. I'll post it as soon as I get home :) Thanks again guys, Jesse. Mark A Basil said: > Hey Jesse, > > Another solution would be to create a text file with what you want to > backup. > > i.e. > > backuplist.txt > --------------------------- > /usr/ > /etc/ > --------------------------- > > tar cvjpf yourbackup.tar.bz2 -T backuplist.txt > > -Mark > > On Monday 10 March 2003 10:58 am, Meir Kriheli wrote: >> 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. > > -- > [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
