Web Hosting Talk







View Full Version : raqbackup.sh 3.0 released


dnid
06-03-2002, 12:56 PM
Hi!

I just released version 3.0 of raqbackup.sh - a free script to backup site and user data, MySQL-databases and other content of your RaQ to another server.

further information and installation:

http://www.neuhaus-internet.de/cobalt/raqbackup/

Best regards
Daniel

CallMeJ
06-03-2002, 01:19 PM
I haven't used this script yet, but I want to thank you for your work on it. I know there are many others using it and I plan to follow suit soon.

microsol
06-03-2002, 04:30 PM
I am using your script on all of our Raq servers. I dont know if you use Plesk or if you have access to a plesk server, but if you could write something like your raqbackup but for Plesk servers this would be cool. Plesk has a backup utility called psadump (the equivalent to CMU I guess), but it only makes backups for complete restores and I would need some script which backs up each domain path one by one (just like CMU does).
Let me know if you would like to give it a try.

dnid
06-03-2002, 06:18 PM
Let me know if you would like to give it a try

no, unfurtunately i never used Plesk. Sorry

Daniel

SynHost
06-03-2002, 11:54 PM
Maybe I'll write something - I have experience with PlesK :)


Ben Hughes
SynHost Founder
http://www.synhost.com/

2Grumpy
06-04-2002, 01:39 AM
If you write something that's as easy to use and setup as raqbackup.sh and as easy to restore from as it is, I'll freaking pay you for the script.

I'd gladly throw a few bucks your way for such a thing.

microsol
06-04-2002, 07:50 AM
Originally posted by Dixiesys
If you write something that's as easy to use and setup as raqbackup.sh and as easy to restore from as it is, I'll freaking pay you for the script.

I'd gladly throw a few bucks your way for such a thing.

Me too :agree:

microsol
06-11-2002, 09:44 AM
Anything coming up soon? :o

2Grumpy
06-27-2002, 10:05 PM
This is a start of what I've done I found the original on plesk's forums and modified the crap outta it, I'll be adding a lot more to this later (ftp backup, definable time limits for keeping the backups are two that pop into mind, and the ability NOT to backup email):

#!/bin/sh

# Script to Backup Plesk

# Set Vars

# Date and format of date - for date stamping files
date=`/bin/date "+%Y%m%d-%H%M%S"`

# Backup Directory
backupdir="/backup/$date"

/bin/mkdir $backupdir

# Backup Script Below

# Backup MySQL

for i in ` /usr/bin/mysql -uadmin -pPASSWORD -e "show databases" -s -s `
do
/usr/bin/mysqldump -uadmin -pPASSWORD $i > $backupdir/db-$i-$date-dump.sql
done

# Backup Plesk Data
/bin/tar -cf $backupdir/dir-usr-$date.tar /usr/local 2> /dev/null
/bin/tar -cf $backupdir/dir-etc-$date.tar /etc 2> /dev/null
/bin/tar -cf $backupdir/dir-var-$date.tar /var/qmail /var/named 2> /dev/null

for i in ` ls /home/httpd/vhosts/ `
do
echo Backing up vhost $i
/bin/tar -cf $backupdir/vhost-$i-$date.tar /home/httpd/vhosts/$i 2> /dev/null
done

/bin/gzip $backupdir/*.tar
/bin/gzip $backupdir/*.sql

# Remove Stale Backup Files from Backup Dir
/usr/bin/find $backupdir -name "*.gz" -mtime +2 -exec rm "{}" ";"

# Done