[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] What's in your backup?
- Subject: Re: [cobalt-users] What's in your backup?
- From: "Peter Rombouts" <peternews@xxxxxxxxx>
- Date: Wed Jan 14 13:47:12 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
---- Original Message -----
From: "Keith Ford" <keith@xxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 14, 2004 9:17 PM
Subject: [cobalt-users] What's in your backup?
> If you have a RaQ550, what directories do you backup?
> Do you do anything else prior to a backup?
>
> -keith
>
Hi Keith,
This is what i do for backup (seen it somewhere in this group, put it in a
shell script):
-----------------------------------------------------
## Start Backup Script Created by Peter ##
# Run a backup of the GUI database #
cd /opt
/usr/local/sbin/cobalt_prebackup
# Move the GUI backup to a safe location #
gzip /var/cobalt/backups/cce.tar
mv /var/cobalt/backups/cce.tar.gz /opt
# Create the actual backup file #
tar zcfv backuppop1.tar.gz /var /etc /usr /root /.nsr /nsr /home
## End Backup Script ##
-----------------------------------------------------
The next stuff is to restore the backup:
-----------------------------------------------------
## Start Restore Script Created by Peter ##
cd /
# Restore the actual backup file #
tar zxfv /opt/backuppop1.tar.gz
# Move the backup to the original location #
cd /opt
gunzip cce.tar.gz
mv /opt/cce.tar /var/cobalt/backups/
# Restore the backup of the GUI database #
/usr/local/sbin/cobalt_postbackup
## End Restore Script ##
-----------------------------------------------------
It will probably backup too much, but it works.
Cheers,
Peter Rombouts