Subscribe
Tag

systemd

1 post

AWS

Nightly MySQL and content backups to S3 with a systemd timer

My old Ghost server ran for years with no backups at all. On the new one, a small bash script dumps MySQL, tars the content folder and uploads both to S3 every night, driven by a systemd timer. Here is the script, the units, the bucket and the gotchas I hit.

6 min read