Skip to content

Instantly share code, notes, and snippets.

View gavinelder's full-sized avatar
🌴
Taking a break.

Gavin gavinelder

🌴
Taking a break.
  • Scotland
  • 06:47 (UTC +01:00)
View GitHub Profile
@gavinelder
gavinelder / s3-curl-backups.md
Created December 18, 2018 10:23 — forked from jareware/s3-curl-backups.md
Simple, semi-anonymous backups with S3 and curl

⇐ back to the gist-blog at jrw.fi

Simple, semi-anonymous backups with S3 and curl

Backing stuff up is a bit of a hassle, to set up and to maintain. While full-blown backup suites such as duplicity or CrashPlan will do all kinds of clever things for you (and I'd recommend either for more complex setups), sometimes you just want to put that daily database dump somewhere off-site and be done with it. This is what I've done, with an Amazon S3 bucket and curl. Hold onto your hats, there's some Bucket Policy acrobatics ahead.

There's also a tl;dr at the very end if you just want the delicious copy-pasta.

Bucket setup