Other backup solution

blaszlo

Verified User
Joined
Jun 9, 2008
Messages
116
Hey guys,

I have been using a backup cron every week, just doing an ftp backup to another server. Due to multiple errors and things not backing up, i decided I want to do something different. Basically, I want to directly attach a couple external HD's to my servers and have DA backup directly to them that way. How do I start? I'm still learning Linux (CentOS 4.4) the best I can, and I guess I'm not too sure how to mount the volume and have to backups save to that volume. If anyone could guide me it would be great. Thanks!
 
Archscript

I made myselft something like this. Simple and working. Sends tar.gz directly to ftp server.
Feel free to use

#!/usr/local/bin/bash
DATE=`date "+%Y-%m-%d"`
USERNAME="user"
PASSWORD="password"
HOST="hostname"

tar cfz - /etc | /usr/local/bin/curl -u $USERNAME:$PASSWORD ftp://$HOST/$DATE/etc.tar.gz -s -S --ftp-create-dirs -T -

tar cfz - /var | /usr/local/bin/curl -u $USERNAME:$PASSWORD ftp://$HOST/$DATE/var.tar.gz -s -S --ftp-create-dirs -T -

tar cfz - /usr | /usr/local/bin/curl -u $USERNAME:$PASSWORD ftp://$HOST/$DATE/usr.tar.gz -s -S --ftp-create-dirs -T -

cd /home
for users in `ls -p /home | grep "/" | grep -v ".snap" | grep -v "admstuff" | grep -v "backup"`; do
USR=`echo $users | sed -e 's/\///'`
tar cfz - $users | /usr/local/bin/curl -u $USERNAME:$PASSWORD ftp://$HOST/$DATE/$USR.tar.gz -s -S --ftp-create-dirs -T -
done
 
You can use the ftp method for the external hard drives as well.

But if you were getting errors changing backup method is not likely to fix the errors. You need to fix the errors.
 
Back
Top