Skip to content

Instantly share code, notes, and snippets.

@calston
Created June 8, 2012 10:19
Show Gist options
  • Save calston/2894864 to your computer and use it in GitHub Desktop.
Save calston/2894864 to your computer and use it in GitHub Desktop.
backup script
#!/bin/bash
s3cmd="/usr/bin/s3cmd"
for host in `ls /backups`; do
echo "Backing up $host"
$s3cmd sync --delete-removed /backups/$host/ s3://prd-backups/$host/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment