[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Backups - Newbie
- Subject: Re: [cobalt-developers] Backups - Newbie
- From: "Suzanne Hediger" <suzanne@xxxxxxx>
- Date: Wed Aug 16 07:10:37 2000
This is what I'm doing now. This script in still in process. You will need
another server that you can ftp to for this to work. This might take care of
what you want. No guarantees. See if this helps. It backs up home, var, etc,
usr and root. I have some additions and changes I want to make still.
#!/bin/sh
cd /home
#set a name for the file with the date and machine
name1=`date '+%a-%b-%d-%y'`
name2=`uname -n`
name3=/home/tmp/
name="$name3$name1.$name2"
#tar home etc and var
tar cfpz $name.home.tar.gz `ls|grep -v tmp`
tar cfpz $name.etc.tar.gz /etc/*
tar cfpz $name.var.tar.gz /var/*
tar cfpz $name.usr.tar.gz /usr/*
tar cfpz $name.root.tar.gz /root/*
#ftp the files to the backup server
cd /home/tmp
ftp -in <host><<endFTP
user <user> <password>
bin
mput *.gz
bye
endFTP
#cleanup
rm $name.home.tar.gz
rm $name.etc.tar.gz
rm $name.var.tar.gz
rm $name.usr.tar.gz
rm $name.root.tar.gz
Suzanne Hediger
Heller Information Services
suzanne@xxxxxxx
http://suzanne.his.com
> Actually, I wish to back up my Raq3 Complete ! So as not to loose
> all of the long hours of installing MySql and all of the other usual
> bells and gizmos.
>
> So Should I backup the entire OS from root or / ? If so, another
> example would be very much appreciated. Although, I do believe I
> have at least 1/2 of one brain cell remaining :)
>