[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [cobalt-users] Disaster recovery
- Subject: Re[2]: [cobalt-users] Disaster recovery
- From: Daniel Neuhaus <cobalt.com@xxxxxxx>
- Date: Wed Aug 15 19:47:02 2001
- Organization: DNID
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Jason Vaughan wrote on 13.08.2001:
> WeeklyExport.pkg
> 1. Prepare the system (shut down various services)
> 2. Run CMU Export
> 3. Tar CMU directory
> 4. FTP CMU.tar to backup machine 2
1. Create a user "backup" at the home site of the target raq. This
user should have a large quota (2000 MB minimum per source raq).
2. Install the Cobalt Migration Utitlity Package at least on the
source raq. You can download CMU from
http://www.cobalt.com/support/download/migration.html
3. Then copy the following file backup.sh as root to
/etc/cron.<something> and make it executeable (chmod 700 backup.sh).
#### backup.sh located in cron.daily ###############################
#!/bin/sh
QUELLE="hostname-of-source.raq.com"
ZIEL="hostname-of-target.raq.com"
rm -rf /home/cmu/$QUELLE
rm /home/cmu/cmuLog
/usr/sbin/cmuExport
cd /home/cmu/$QUELLE
ftp -i -n $ZIEL <<!EOF!
user backup passwordofuserbackup
mkdir $QUELLE.bak
cd $QUELLE.bak
mdelete *
cd ..
rmdir $QUELLE.bak
rename $QUELLE $QUELLE.bak
mkdir $QUELLE
cd $QUELLE
ascii
put cmu.xml
put backup.md5lst
binary
mput *gz
quit
!EOF!
###################################################################
4. Be sure to modify backup.sh:
- change lines 3 (source raq) and 4 (target raq)
- change the password for user backup (line 12)
5. After two days you'll have two backup-versions (the cmuexport from
today and yesterday) per source raq on your target raq:
/home/sites/users/backup/hostname-of-source.raq.com/
/home/sites/users/backup/hostname-of-source.raq.com.bak/
6. You'll get a email with the cmuexport-output to
admin@xxxxxxxxxxxxxxxxxxxxxxxxxx
7. The script runs fine since eight months under raq3 and raq4.
There is no need to stop any services on the source-raq. Of course
there's no warranty :-)
Regards,
Daniel