Using restic for mysql backups

I had previously set up a bash script to backup a mysql database. It created daily dumps, gzipped them, and retained 7 daily, 4 weekly and 3 monthly backups via a system of symlinking. That all worked fine for a few years, but I revisited it more recently as we now wanted to keep an offsite copy of the backups, and that would require encrypting them. The problem is gzip doesn't do encryption, so we needed to explore a few options, so I went through gpg, zip with password, etc, and then came to restic.

Read more

Mail troubleshooting with curl.

A docker container wasn't sending mail. I'd debugged the connection from the host machine and that was working, but once inside the container, there were no tools available. No mail, no mutt, no traceroute, no ping, no mtr, no netcat … so how to find out if the container could send to the mail server … Read more