Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

anyone has a nice, simple script for backing up a VPS to a S3 bucket? can be ruby, python, whatever...

should be easy to configure!


share|improve this question

4 Answers 4

I use Tim Kay's aws script to do backups to S3.

Works well for my needs, which is just website files and mysql databases.

Not really sure exactly what you mean by "backing up a VPS" though.

share|improve this answer

Duplicity supports Amazon S3 storage among many others (local file storage, scp/ssh, ftp, rsync, HSI, WebDAV, Tahoe-LAFS)

share|improve this answer

I have setup the S3 Bucket as a mounted network drive in the VPS (Centos 5), then configured incremental backups in WHM (Web Host Manager) and used this mounted drive as destination.

share|improve this answer

I'm using AWS Command Line Interface. The setup is easy. There are plenty of documentation and examples online. And best of all it is a native tool openly developed by the AWS Team.

For example, you can sync a local folder (in your VPS) with a S3 Bucket like this:

$ aws s3 sync /local/path/ s3://my-bucket/MyFolder --recursive --exclude '*.log'

The --recursive option will transvers all your folders copying everything except log files (using the --exclude option). This is just an example. The AWS CLI tool provides various options (cp, ls, mb, mv, rb, rm, sync, website) to configure any kind of solution for backup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.