Skip to content

Instantly share code, notes, and snippets.

@Aterfax
Aterfax / Netbooting-the-Urbackup-restore-ISO-with-Netboot.xyz.md
Last active November 18, 2023 17:05
Netbooting the Urbackup restore ISO with Netboot.xyz
@Aterfax
Aterfax / CRON time expression validation with regex.md
Last active March 29, 2024 16:16
CRON time expression validation with regex
@Aterfax
Aterfax / SWAG + Mailcow - syncing cert renewal actions.md
Last active April 27, 2024 19:34
SWAG + Mailcow - syncing cert renewal actions

SWAG + Mailcow docker - syncing cert renewal actions

Motivation

Since you cannot prod Mailcow docker containers to restart from the certbot context within the SWAG docker container, we can just use some bash and systemd on the host.

Bash Script

Note that your host will need inotify-tools installed, e.g. apt install inotify-tools

/opt/mailcow-letsencrypt-watcher.sh

@Aterfax
Aterfax / Docker_Container_CRON_MariaDB_Dump.md
Created May 4, 2024 18:06
In container MariaDB / MySQL dumps for Linuxserver.io MariaDB/MySQL containers

In container MariaDB / MySQL dumps for Linuxserver.io MariaDB/MySQL containers

Motivation

tl;dr you want in container DB dumps for consistent backups via an external backup method grabbing your volume or bind mount directory.

Step 1

Enable the LinuxServer.io docker mod for cron by adding the env var to your compose / run script: