At 09:19 AM 03/11/2005, you wrote:
Anyone got any ideas on how I can relatively quickly backup a raq 550
onto a seperate machine apart from using the commercial backup programs?
I've been trying cmuExport but the speed is quite awful for regular
backups.

TIA!

Sorry, I missed that you wanted to avoid CMU.
I used to do it this way (script follows) but I have found on my new BQ+Centos on a tyan 2.4ghz box CMU runs quickly - what used to take an hour now takes 8 min.

Here's my old script skipping CMU:

#!/bin/bash

# by William Brillinger, March 27, 2003
# create daily site backups for each site

d=$(date +%Y-%m-%d)

echo Removing Yesterdays Backup Files...
cd /home/daily_site_backups
rm *

echo
echo Start: $(date +%H:%M)

echo Backing Up Site Dirs...
for URL in $( find /home/sites -type l -maxdepth 1 | sed -e 's/\/home\/sites\///g' ); do
        echo --Creating tar for $URL...
        SiteNo=$(ls -l /home/sites/$URL | sed -e 's/.*\/sites\///g')
        tar cpz -f $d-$URL-$SiteNo.tar.gz /home/sites/$SiteNo
        echo
done

echo Backing Up MySQL DataBases...
mysqldump --all-databases --opt -uroot -pPASSWORD > $d-MySQL-Databases.sql
echo Databases Found...
echo grep 'CREATE DATABASE' $d-MySQL-Databases.sql | sed -e 's/.*\*\/ //g'
echo

echo Backing Up Email Spools...
tar cpz -f $d-MailSpool-.tar.gz /home/spool
echo

echo Securing files...
chmod 600 *

echo Transfering Files to Secure2...

# ------------------------------------------
# See ~/.netrc for login changes!!
# ------------------------------------------

ftp -i backup.server.tld <<**
cd /admin_tools/backups-hostname
mkdir $d
cd $d
binary
mput *
ls -x1A
cdup
chmod 600 $d
bye
**

echo Completed: $(date +%H:%M)






---------------------------------
William J.A. Brillinger 
Precision Design Co.

E-Mail:   mailto:[EMAIL PROTECTED]
Web site: http://www.pdcweb.net

_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts

Reply via email to