Automatic FTP downloading of archive


#1

I’ve just set up a cron job to make a backup of my databases, and now want to download and delete those databases, as it is against DH TOS to host backups.

The instructions on the wiki
(http://wiki.dreamhost.com/Automatic_Backup#Automatic_FTP_downloading_of_archive)
are a a little unclear. I’m on OSX, and I believe I’m to create two files, but not sure how to name them, or where to place them. It seems as though something is missing in the instructions, but maybe it’s just late or I’m just an idiot.

Support was far less than helpful.

oh yeah, also, the cron task is already set up, I just need to know what to do with:

#!/bin/bash
cd /home/username/backups/archives
sftp -bftp username’@domain.com

and

cd backups/
get archives/*
rm archives/*
bye

thanks!


#2

Figured it out. Ignore.