MailcowBackup Versions Save

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.

MailcowBackupV1.1

5 years ago

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.

MailcowBackupV1

5 years ago

SQLDump location corrected, readme updated. Tested, working. Initial release.

  • error checking for stopped containers is flawed... fix coming soon!
  • paths are not properly specified, possible issues running in crontab... fix coming soon!