./helper-scripts/backup_and_restore.sh backup mysql --delete-days 7

Category: Mail Servers & Postfix

./helper-scripts/backup_and_restore.sh backup mysql --delete-days 7

Back up the Mailcow database and prune old copies

The mysql target dumps the mailcow database with mailboxes, aliases, and quarantine state into the configured backup directory. --delete-days 7 prunes backups older than a week. Pair it with the vmail target for a complete recovery set.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.