How to back up MariaDB databases running in a container

Backups are sometimes not quite present in our everyday life, but if we suddenly face a problem there is nothing but a backup that can save us. In the past, I have mounted the data from MariaDB (or MySQL) containers using Docker on a specific Docker volume and backed it up daily. Depending on the database engine, this data may or may not be consistent. For an installation that has a very large database workload, such backups are almost never consistent and are therefore not an optimal solution....

2022-12-23 · 3 min · 487 words · ae3

Telegram Notification on successful SSH Login

With the following script we monitor the SSH login on a server and send a notification via Telegram API. This way you will get a notification in real time when someone logs in to your server via SSH. For me this is a valuable security feature. Telegram Notification on successful SSH Login telegram-send Python Script First, we create the following Python script, which is used to send messages to Telegram’s API....

2022-12-12 · 2 min · 406 words · ae3

Fix macOS pssh logging caused by line buffering

If you want to log the output of an SSH connection under macOS with pssh from Homebrew, the following error occurs: line buffering (buffering=1) isn't supported in binary mode In the pssh command this happens when you define the -o option for output. pssh -t 0 -p 10 -l root -h host.list -o logs 'command' In order to log the output of the SSH session, we have to make a small adjustment to the Python psshlib....

2022-12-07 · 2 min · 254 words · ae3

Hosting Mastodon on a currently used domain name

You already use your domain for a company website and now you want to use Mastodon with your domain? It is possible to install Mastodon on a subdomain (mastodon.example.com) and still be found in Fediverse under example.com. Mastodon is a decentralized microblogging network, that is similar to Twitter, and can be self-hosted on your own server. Hosting Mastodon on a currently used domain name Environment Settings Note By the way, if you haven’t installed Mastodon on your server yet, you can follow my instructions to install Mastodon on your server using Docker and Traefik as a reverse proxy....

2022-11-24 · 2 min · 234 words · ae3

Mastodon with Docker and Traefik

Mastodon is a decentralized microblogging network, that is similar to Twitter, and can be self-hosted on your own server. Unlike Twitter, Mastodon consists of many different servers that are connected worldwide. This connection is established through the so-called Fediverse. It doesn’t matter if you create your account on your own self-hosted Mastodon instance or if you create an account with one of the numerous providers. Since all servers are connected, you can interact with your account from anywhere....

2022-11-16 · 6 min · 1140 words · ae3