Script to backup/restore Mailcow and the host system using borgbackup. Handles 503 error page generation, mailflow stop/restart, SQL database dump, borg backup and prune and integrates with Logwatch for easy monitoring.
Added explicit path so that docker-compose can be located. Stopped containers are checked for both state (to confirm stop) and exit code. Operations changed to run without TTY so crontab execution works.
This script can be used both in an interactive shell and called from crontab.
All functions working.
SQLDump location corrected, readme updated. Tested, working. Initial release.