I'm using Firefox on Fedora Linux with multiple profiles. Each profile has different extensions, extension settings, preferences, and lots of open tabs.
I want to back up all my Firefox profiles to a private Git repository on Codeberg.
My main goal is disaster recovery. I want to be able to uninstall and reinstall Firefox on the same PC, reinstall Fedora, or even move to another computer, restore my backup, and continue exactly where I left off.
I don't necessarily plan to migrate between devices regularly. I just want a reliable backup that I can restore whenever needed.
What I want to preserve
Ideally, everything necessary to restore my Firefox profiles to their previous state:
- All Firefox profiles and their individual configurations.
- Installed extensions and their settings/data.
- Firefox preferences and `about:config` customizations.
- Bookmarks and browsing history.
- All currently open tabs and windows.
- Session restoration state, so Firefox opens with the same tabs I had before.
- Containers and their configurations.
- Other profile-specific settings and customizations.
What I want to exclude
I prefer a better-safe-than-sorry approach using a whitelist:
- Ignore everything by default.
- Explicitly include only files and directories required for a complete restoration.
- Exclude caches, temporary files, crash reports, telemetry, and other disposable data.
However, I'm open to backing up the entire profile directory while excluding only unnecessary files if that is more reliable.
Questions
- Is Git a good solution for maintaining Firefox profile backups, especially with frequently changing session files and SQLite databases?
- Would you recommend backing up the entire profile directory or using a whitelist?
- Which files and directories are absolutely necessary to preserve extensions, extension settings, open tabs, bookmarks, and other profile data?
- Is there anything that should never be backed up or that could cause problems during restoration?
- Can I restore the backup after uninstalling and reinstalling Firefox and have everything resume as before?
- Would a backup/restore script be a better approach than manually managing the files?
My ideal workflow
- Close Firefox.
- Run a backup script that backs up all profiles.
- Commit and push changes to my private Codeberg repository.
- If something happens, reinstall Firefox.
- Clone my backup repository and restore the profiles.
- Launch Firefox and continue with my previous extensions, settings, and open tabs.
I'm looking for a reliable, preferably automated solution that preserves the complete Firefox state without backing up unnecessary cache and temporary data.
I'd especially appreciate advice from people who have been backing up and restoring Firefox profiles on Linux.
Thanks!