![]() |
|
Guide How to Update BillionMail Safely (and Roll Back if Something Breaks) - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: aaPanel (https://adminsforum.com/Forum-aapanel) +---- Forum: aaPanel Guides & Tutorials (https://adminsforum.com/Forum-aapanel-guides-tutorials) +----- Forum: aaPanel BillionMail Guides (https://adminsforum.com/Forum-aapanel-billionmail-guides) +----- Thread: Guide How to Update BillionMail Safely (and Roll Back if Something Breaks) (/Thread-guide-how-to-update-billionmail-safely-and-roll-back-if-something-breaks) |
How to Update BillionMail Safely (and Roll Back if Something Breaks) - JAY - 10-23-2026 How to update BillionMail safely (and roll back if something breaks) BillionMail gets regular updates with fixes and new features. Updating usually takes a few minutes, but your mail server holds things you can't easily recreate: mailboxes, contacts, templates, DKIM keys and SSL certificates. So the rule is simple: back up first, update second, check third. Step 1: Check your version and read the release notes Your version is shown at the top right of the BillionMail dashboard (for example v4.9.0). Compare it with the latest release on BillionMail's GitHub releases page and read what changed. Look for words like "breaking", "migration" or "manual step". Step 2: Back up Option A (easiest): a VPS snapshot. Most providers offer snapshots in their control panel. One click saves the whole server; restoring it puts everything back exactly as it was. Option B: back up the BillionMail folder. Everything BillionMail stores (database, mailboxes, configuration, keys, certificates and the Code: .env
Code: ls -d /www/dk_project/dk_app/billionmail/billionmail_* /opt/BillionMail 2>/dev/nullStop BillionMail so the database is written cleanly, copy the folder, start it again: Code: cd /www/dk_project/dk_app/billionmail/billionmail_XXXX # your folder
docker compose stop
tar -czf /root/billionmail-backup-$(date +%F).tar.gz .
docker compose start
ls -lh /root/billionmail-backup-*.tar.gzStep 3: Update aaPanel Docker install: open Docker in aaPanel and look at the installed BillionMail app. If an update is offered there, use it. Script install (git based): run the built-in updater from the BillionMail folder: Code: bash bm.sh updateCode: bm updateCode: bmCode: The .git does not existStep 4: Check that everything works
Step 5: Roll back if something broke From a snapshot: restore it in your provider's panel. Done. From the folder backup: Code: cd /www/dk_project/dk_app/billionmail/billionmail_XXXX
docker compose down
cd .. && mv billionmail_XXXX billionmail_XXXX.broken
mkdir billionmail_XXXX && cd billionmail_XXXX
tar -xzf /root/billionmail-backup-YYYY-MM-DD.tar.gz
docker compose up -dCode: docker-compose.ymlCode: docker compose up -dCode: .brokenMail received after the backup (between backup and rollback) stays in the broken copy. If that matters, ask in this section before deleting it. Good habits
Sources: BillionMail on GitHub ยท Docker Compose documentation More BillionMail troubleshooting
Applies to BillionMail 4.9 installed through aaPanel or the install script, October 2026. |