Backup to web...help needed

Miscellaneous Forums/General Discussion/Backup to web...help needed

I'm interested in setting up a system at home for backing up what I'm working on to my Dreamhost server, just in case my house burns down or somet other fun disaster happens. The folder I'm working on is around 100mb at the moment and growing, but is unlikely to get much bigger than a gig or two.

I have shell access to my Dreamhost account, I'm working on OSX, so have shell ssh etc. there. What would be an easy and secure way to do this? Preferably encrypted, as I don't want others to get access to these files. It doesn't have to be automated, but preferably something I can do by just running a script or clicking an icon. The backup doesn't need to be incremental either.

What's an easy way to do this? rsync, subversion, Apple Script, something else....

Ragnar

p.s. I'm not very familiar with shell scripting, but if pointed in the right direction I'm sure I can figure it out. Know some PHP and have written an Apple Script or two in my time though.

To reply to my own post. This is what I cooked together in an hour.

backup.sh
#!/bin/sh
tar cf - ../../Documents/FilesToBackUp | gzip | openssl des3 -pass pass:MyPassWord -out backup.tar.gz
ftp < autoftpbackup
rm backup.tar.gz


autoftpbackup
open ragtag.net
ragtag
cd backup
binary
put backup.tar.gz
bye


Then I use the following to restore it.

restore.sh
#!/bin/sh
ftp < autoftprestore
openssl des3 -d -pass pass:MyPassWord -in backup.tar.gz | tar -zxv
rm bakcupt.tar.gz


autoftprestore
open ragtag.net
ragtag
cd backup
binary
get backup.tar.gz
bye


I still need to type in the password when using ftp, as I couldn't figure out a way to automate it. This seems to work fine. The password for the encryption is kept on my local machine, so even though it's written in plaintext in the .sh files, I don't think it will matter.

Anyone spot any potential problems with this approach.

Ragnar

edit: It's not stored to the same location, which is the way I want it.