Web Hosting Talk







View Full Version : backup script


goodness0001
12-06-2001, 03:07 PM
Anybody know of a good backup script that would backup a server and then ftp the information to another server?

thanks

bobcares
12-06-2001, 03:45 PM
I guess you can write it easy.
All you have to do is
tar directory to be zipped. say /home/
Then ftp it to another server...

Then add a cron job to do it regularly...

I hope it made sense... ;)

Have a great day :)

regards
amar

goodness0001
12-06-2001, 03:49 PM
how do you pass the username and password combination to the server using the script when ftping??

bobcares
12-06-2001, 04:45 PM
use
expect.

Also another thing you can consider is scp instead of ftp .

Have a great day :)

regards
amar

zupanm
12-06-2001, 04:46 PM
a better option is rsync.

jimb
12-06-2001, 09:42 PM
if your on a RAQ, the website, www.raqservices.com has a backup script that apparently works really well. The built in RAQ back up doesnt work.

Jim

RutRow
12-06-2001, 11:35 PM
Also another thing you can consider is scp instead of ftp
a better option is rsync

Take it one more step.... rsync through ssh, and you have something really nice!

RutRow
12-06-2001, 11:41 PM
BTW, you can get around using expect for an automated ftp script....


#!/bin/bash
ftp -n updates.redhat.com << EOT
user anonymous anon@anon.com
bin
prompt
cd 7.2/en/os/i386
mget *.rpm
bye
EOT

allera
12-07-2001, 12:46 AM
This might help:

http://www.webhostingtalk.com/showthread.php?threadid=19113