No description
Find a file
2026-05-31 00:30:09 -06:00
migrate.sh feat: add dry-run option 2026-05-30 20:54:03 -06:00
README.md docs: add README 2026-05-31 00:30:09 -06:00

Thunderbird → Betterbird Migration Script (macOS)

Automate the migration of your Thunderbird profile to Betterbird on macOS, with a safetyfirst approach:

  • Backups your Thunderbird profile as a timestamped .zip file
  • Copies the profile folder to Betterbirds own profile location
  • Preserves all accounts, local mail, filters, address books, passwords¹ and most addons
  • Dryrun mode to preview every action before touching any files

¹ Passwords stored in Thunderbirds password manager are migrated; if you used the macOS Keychain you may need to reenter 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 ~/Library paths)

Quick Start

  1. Quit Thunderbird and Betterbird completely.

  2. Download and save the script as migrate.sh.

  3. Make it executable:

    chmod +x migrate.sh
    
  4. Do a dryrun (highly recommended):

    ./migrate.sh --dry-run
    

    This shows every folder that will be created, every file that will be copied, and any potential conflicts without actually changing anything.

  5. Run the real migration:

    ./migrate.sh
    
  6. Launch Betterbird with the Profile Manager:

    • Option 1: Hold the Option (⌥) key while doubleclicking the Betterbird icon.

    • Option 2: From Terminal:

      /Applications/Betterbird.app/Contents/MacOS/betterbird -profilemanager
      
    • Choose Create Profile…NextChoose 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

  1. Finds your active Thunderbird profile (using profiles.ini).
    If it cant determine the default, it copies all profiles.

  2. Creates a zip backup on your Desktop (~/Desktop/Thunderbird_Backups/).

  3. Copies the profile folder(s) to ~/Library/Application Support/Betterbird/Profiles/.

  4. 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:

  1. Quit Betterbird.
  2. Remove the faulty Betterbird profile folder from ~/Library/Application Support/Betterbird/Profiles/.
  3. Unzip your backup (found on your Desktop) into that same location.
  4. Repoint Betterbirds 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 ⌥ Option while opening the app to force the Profile Manager.

The script cant 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. Reenter them; they will be saved inside Betterbirds own password manager.

Some addons didnt transfer

Most Thunderbird addons work perfectly. If one doesnt, reinstall it from addons.thunderbird.net Betterbird is fully compatible.


License

This script is provided asis, free to use and modify. No warranty always keep a backup of your data.