- Shell 100%
| migrate.sh | ||
| README.md | ||
Thunderbird → Betterbird Migration Script (macOS)
Automate the migration of your Thunderbird profile to Betterbird on macOS, with a safety‑first approach:
- Backups your Thunderbird profile as a timestamped
.zipfile - Copies the profile folder to Betterbird’s own profile location
- Preserves all accounts, local mail, filters, address books, passwords¹ and most add‑ons
- Dry‑run mode to preview every action before touching any files
¹ Passwords stored in Thunderbird’s password manager are migrated; if you used the macOS Keychain you may need to re‑enter them.
Prerequisites
- Thunderbird already set up and used at least once (so a profile exists)
- Betterbird downloaded from www.betterbird.eu but not launched yet
- macOS 10.15 or later (the script relies on
~/Librarypaths)
Quick Start
-
Quit Thunderbird and Betterbird completely.
-
Download and save the script as
migrate.sh. -
Make it executable:
chmod +x migrate.sh -
Do a dry‑run (highly recommended):
./migrate.sh --dry-runThis shows every folder that will be created, every file that will be copied, and any potential conflicts – without actually changing anything.
-
Run the real migration:
./migrate.sh -
Launch Betterbird with the Profile Manager:
-
Option 1: Hold the
Option (⌥)key while double‑clicking the Betterbird icon. -
Option 2: From Terminal:
/Applications/Betterbird.app/Contents/MacOS/betterbird -profilemanager -
Choose Create Profile… → Next → Choose Folder… and select the folder that was copied (it will be inside
~/Library/Application Support/Betterbird/Profiles/). -
Start Betterbird with that profile.
-
What the script does
-
Finds your active Thunderbird profile (using
profiles.ini).
If it can’t determine the default, it copies all profiles. -
Creates a zip backup on your Desktop (
~/Desktop/Thunderbird_Backups/). -
Copies the profile folder(s) to
~/Library/Application Support/Betterbird/Profiles/. -
Skips copying if a Betterbird profile with the same name already exists (to avoid accidental overwrites).
Your original Thunderbird profile remains completely untouched.
Options
| Flag | Description |
|---|---|
--dry-run or -n |
Prints every command that would be executed without actually running them. |
Restoring from backup
If something goes wrong:
- Quit Betterbird.
- Remove the faulty Betterbird profile folder from
~/Library/Application Support/Betterbird/Profiles/. - Unzip your backup (found on your Desktop) into that same location.
- Re‑point Betterbird’s Profile Manager to the restored folder.
Troubleshooting
“no such file or directory: /Applications/Betterbird.app/Contents/MacOS/betterbird”
Betterbird is either not installed or is in a different location.
- Check with
ls /Applications | grep -i betterbird. - If installed as “Betterbird Beta.app”, adjust the path accordingly, or simply hold
⌥ Optionwhile opening the app to force the Profile Manager.
The script can’t find my Thunderbird profile
Ensure Thunderbird has been launched at least once on your Mac.
Manually locate your profile at:
~/Library/Thunderbird/Profiles/
After migration Betterbird asks for passwords
This is normal if you stored passwords in the macOS Keychain. Re‑enter them; they will be saved inside Betterbird’s own password manager.
Some add‑ons didn’t transfer
Most Thunderbird add‑ons work perfectly. If one doesn’t, reinstall it from addons.thunderbird.net – Betterbird is fully compatible.
License
This script is provided as‑is, free to use and modify. No warranty – always keep a backup of your data.