Skip to content

Instantly share code, notes, and snippets.

@leemason
Created April 22, 2016 20:07
Show Gist options
  • Save leemason/91c6b0e1c344627b9baef8905630f7ed to your computer and use it in GitHub Desktop.
Save leemason/91c6b0e1c344627b9baef8905630f7ed to your computer and use it in GitHub Desktop.
Sync backups to Amazon S3 via trickle and s3cmd.
#!/bin/bash
#send sync request to s3 bucket
/usr/bin/trickle -s -u 4000 -d 4000 /usr/bin/s3cmd --config=/home/{{user}}/.s3cfg sync /backups s3://{{bucketname}}/{{location}}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment