[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: [cobalt-users] Disaster recovery



Daniel,

Nice one indeed. Very impressed.

This will do very nicely on our Raq 4. How about on a Raq 2? I have CMU on both.

Cobalt,

How about using this script on the existing Raqs whilst you fix the backup / Restore?

Regards,

Jason

Nice solution , but extremely CPU consumming, I assume ??

le 16.8.2001 12:41, Daniel Neuhaus à cobalt.com@xxxxxxx a écrit :

 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
 >
 > _______________________________________________
 > cobalt-users mailing list
 > cobalt-users@xxxxxxxxxxxxxxx
 > To Subscribe or Unsubscribe, please go to:
 > http://list.cobalt.com/mailman/listinfo/cobalt-users

=======================================================================

Marco Baurdoux
Unix Administrator
Infomaniak Network SA
Avenue de la Praille 26
1227 Carouge
Switzerland
Tel: +41 (0)22 820 35 41
Fax: +41 (0)22 820 35 46
http://web.infomaniak.ch

=======================================================================



_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

--
 ---------------------------------------------
Webmaster
       Netergy.com Limited
       Studio 1B, 101 Farm Lane, London SW6 1QJ
       T: 020 7610 1010 - F: 020 7610 1551
       http://www.netergy.com
       http://www.anynames.com
 ---------------------------------------------

 IMPORTANT LEGAL NOTICE:
This e-mail is strictly confidential and is intended solely for the person or organisation to whom it is addressed. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this communication in error, please advise us by e-mail and delete the file from your system.

If you contact us by e-mail, we will store your name and address to facilitate communications.