[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Backup Procedure - mySQL and nameserver config
- Subject: [cobalt-users] Backup Procedure - mySQL and nameserver config
- From: "Simon Pierce" <simon@xxxxxxxxxxxxxxx>
- Date: Mon Jun 10 02:56:02 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
Here's the step by step backup procedure for a RaQ 3 I posted last week. I
still don't know if it works as I have no means of trying it!
I have a question: what should I add to the following to ensure that I
backup the mySQL server, and Nameserver configuration? Or should I just do a
Admin Panel backup of all server configuration before doing these steps?
I'm doing this instead of using raqbackup.sh because I don't have a second
server to backup to.
Cheers!
Simon
Backup Procedure
1)Telnet in and su to root. Type the following commands.
cd /
tar -cpvz -f /home/backup/etc.tar.gz etc
cd /
tar -cpvz -f /home/backup/var.tar.gz var
cd /
tar -cpvz -f /home/backup/root.tar.gz root
cd /usr/
tar -cpvz -f /home/backup/usr-admserv.tar.gz admserv
cd /usr/
tar -cpvz -f /home/backup/usr-local.tar.gz local
cd /home/log/
tar -cpvz -f /home/backup/home-log-httpd.tar.gz httpd
cd /home/
tar -cpvz -f /home/backup/home-spool.tar.gz spool
cd /home/
tar -cpvz -f /home/backup/sites.tar.gz sites
2)Using FTP, browse to the /home/backup/ folder, and copy the TARs to a safe
place.
3)Disaster hits!
4)On a new RaQ, create the folder /home/backup/ and copy the TARs accross.
5)Telnet in and su to root. Type in the following commands:
cd /
tar -xfpvz /home/backup/etc.tar.gz
cd /
tar -xfpvz /home/backup/var.tar.gz
cd /
tar -xfpvz /home/backup/root.tar.gz
cd /usr/
tar -xfpvz /home/backup/usr-admserv.tar.gz
cd /usr/
tar -xfpvz /home/backup/usr-local.tar.gz
cd /home/log/
tar -xfpvz /home/backup/home-log-httpd.tar.gz
cd /home/
tar -xfpvz /home/backup/home-spool.tar.gz
cd /home/
tar -xfpvz /home/backup/sites.tar.gz
6) Restart RaQ and hope for the best!