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.
General IT
Increasing Linux swapfile with minimal disruption: the swapfile shuffle
Had a server which needed a bit more swap, but the current swap was at 100%, and it was marginal whether there was enough RAM to allow me to delete the current 2G swap and replace it with 4G. So I came up with the "swapfile shuffle". All good. Happy server.
bash htaccess file management script
OK, so its not too hard to run htpasswd manually, but if you spend a lot of time in your job doing it, it's nice to have a tool to do it more efficiently. This is a menu driven script, which will make a backup of your file, and suggest a random password, which you … Read more
Revert Linux systemd interface naming to simple legacy naming
I do understand the reasons for why this change was made, but I simply don't want to have to remember my USB wifi interface's mac address every time I want to reference it, so this is how to turn back to simpler times. Hello eth0 and wlan0. I've missed you. This is just a reminder … Read more
Google Gemini bad qdrant systemd advice
Sometimes I give AI a shot. This was one of the occasions where I did, and it ended up costing me more time that actually trying to solve the problem myself. I had a request to run qdrant database, and I didn't want to do it under docker, due to all the extra nonsense that … Read more