hey what's up..

i've just recently fought the "tar battle" myself, having picked up my first sysadmin 
job.  after hours of beating my head trying to find better solutions, i ended up 
deciding on cpio.  it seems much more reliable than tar (i archive to tape, and 
sometimes tar would just sh1t all over me, not lending a hand to recover one file).  
just thought i'd open your eyes to this nice tool if you hadn't found it already. 

lion-O

On Mon, Mar 10, 2003 at 07:57:50PM -0500, Jesse Jacobs wrote:
> Hello everyone,
> 
> Here's the link: http://www.xs4all.nl/~voorburg/backup.html
> 
> I'll be fiddling with it.
> J
> 
> Jesse Jacobs said:
> > 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

-- 
''Wisdom is the companion of patience''

       ,-~~-.___.
      / |  '     \
     (  )         0
      \_/-, ,----'
         ====           //
        /  \-'~;    /~~~(O)
       /  __/~|   /       |
     =(  _____| (_________|

Brett Ryan Campbell
Systems Administrator, CAD Research Center
Cal Poly State University, San Luis Obispo, CA 93407
http://www.cadrc.calpoly.edu/frameset_content/content_about_us.html

--
[EMAIL PROTECTED] mailing list

Reply via email to