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

Category: Mail Servers & Postfix

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

Back up maildirs and prune backups older than a week

This runs the Mailcow backup script for the vmail target, which snapshots every user's maildir into the backup location configured in mailcow.conf. --delete-days 7 removes backups older than seven days. Schedule it nightly to keep mail recoverable.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.