Include/Exclude Rules to for Chromium/Gecko userdata backup

  1. Is my config right ? Am I missing anything to ignore or to backup ?
  2. These are for windows. If you can make it universal, comment below. or make you own edits.

Chromium

`Chromium`

----------------------------Chromium---------------------------------------------

--------------------------------🟢Backup Include------------------------------

-------------------------Bookmarks------------------------------

!Bookmarks

---------Bookmarks---------

!/User Data/*/Bookmarks
!/User Data/*/Bookmarks.bak

------------------------------Extensions------------------------------

---------Extensions---------

!**/User Data/*/Extensions/

---------Extension settings & data---------

!/User Data/*/Local Extension Settings/
!/User Data//Sync Extension Settings/
!**/User Data//Extension State/

------------------------------🔴Backup EXCLUDE------------------------------

**/User Data//Cache/
**/User Data//Cache_Data/
**/User Data//Code Cache/
**/User Data//Media Cache/
**/User Data//GPUCache/
**/User Data//DawnCache/
**/User Data/*/DawnWebGPUCache/

---------GPU Caches---------

**/User Data//ShaderCache/
**/User Data/ShaderCache/
**/User Data//GrShaderCache/
**/User Data/GrShaderCache/
**/User Data//GraphiteDawnCache/
**/User Data//GPUPersistentCache/

-------------These exclusions may also delete some extension data along with website-------------

#/IndexedDB/
#/User Data//IndexedDB/
#**/User Data//Local Storage/
#**/User Data/*/Service Worker/

---------Storage contains website storage / offline application data---------

#**/User Data/*/Storage/

---end---

**/User Data/*/Session Storage/

**/Service Worker/CacheStorage/

---Maybe---

**/Service Worker/

---------CRASH / TEMPORARY / METRICS---------

**/User Data/Crashpad/
**/Crashpad/
**/DeferredBrowserMetrics/
**/BrowserMetrics/
**/Roaming///Crash Reports/
**/Roaming/Mozilla/Firefox/Profiles/*/minidumps

---------History---------

**/User Data//History
**/User Data//History-journal

---------Favicons---------

**/User Data//Favicons
**/User Data//Favicons-journal

---------AI MODELS---------

**/screen_ai/
**/OptimizationGuideModelsManifest/

---------CHROMIUM RE-DOWNLOADABLE DATA---------

**/Safe Browsing/
**/WasmTtsEngine/

:fox:Firefox

------------------------------🦊Firefox🟢Backup INCLUDE------------------------------

---------Bookmarks-&-History---------

!/Profiles/*/places.sqlite
!/Profiles//places.sqlite-shm
!**/Profiles//places.sqlite-wal

---------Roaming---------

!**/Profiles/*/bookmarkbackups/

---------Extension---------

!extensions.json
!addons.json

Roaming

!/Profiles/*/browser-extension-data/
!/Profiles//extensions/
!**/Profiles//extension-store/
!/Profiles/*/extension-store-menus/
!/Profiles/*/extension-store-userscripts/



!/Profiles/*/browser-extension-data/
!/Profiles//extension-dnr/
!**/Profiles//extension-store/
!/Profiles/*/extension-store-menus/
!/Profiles//extension-store-userscripts/
!**/Profiles//extensions/



!/Profiles/*/extensions.json
!/Profiles//addons.json
!**/Profiles//addonStartup.json.lz4
!/Profiles/*/extension-preferences.json
!/Profiles/*/extension-settings.json

Keep extension storage

!**/Profiles//storage/default/moz-extension+++/

---------Extension /Data # This May have IndexedDB, Local Storage, Cache API / other origin storage

!**/Profiles//storage/default/moz-extension+++/
!storage/default/moz-extension+++*/

---------Extension packages---------

!Firefox/Profiles/*/extensions/
!addons.json

---------Extension metadata---------

!/Profiles/*/extensions.json
!/Profiles/*/addonStartup.json.lz4

---------Extension preferences---------

!/Profiles/*/extension-preferences.json
!/Profiles/*/prefs.js

---------Passwords---------

!/Profiles/*/key4.db
!/Profiles//logins.json
!**/Profiles//logins-backup.json

Session

!**/Profiles/*/sessionstore-backups/

cookies

!**/Profiles//cookies.sqlite

Form History

!**/Profiles//formhistory.sqlite

!/Profiles/*/prefs.js
!/Profiles//user.js
!**/Profiles//xulstore.json
!/Profiles/*/containers.json
!/Profiles//handlers.json
!**/Profiles//permissions.sqlite
!/Profiles/*/content-prefs.sqlite
!/Profiles/*/search.json.mozlz4

!/Profiles/*/notificationstore.json
!/Profiles//protections.sqlite
!**/Profiles//storage-sync-v2.sqlite
!/Profiles/*/tabnotes.sqlite
!/Profiles//taskbartabs/
!**/Profiles//weave/

------------------------------🦊Firefox🔴Backup Exclude------------------------------

####---Don't Exclude
#**/Profiles/*/storage/default/

**/Profiles//storage/default/https+++
**/Profiles//storage/default/moz-extension+++

------------Cache in /Local

**/Profiles//cache2/
**/Profiles//thumbnails/
**/Profiles//jumpListCache/
**/Profiles//safebrowsing/
**/Profiles//shortcutCache/
**/Profiles//startupCache/

---------OTHER WEBSITE STORAGE---------

**/Firefox/Profiles//OfflineCache/
**/Profiles//storage/temporary/

---------Cache---------

**/Profiles//favicons.sqlite
**/Profiles//formhistory.sqlite

---------Telemtry---------

**/Profiles//datareporting/
**/Profiles//saved-telemetry-pings/
**/Profiles/*/Telemetry.FailedProfileLocks.txt

---------Website persistent storage---------

**/Profiles//storage/default/http+++/
**/Profiles//storage/default/https+++/

**/Profiles/*/shader-cache/

---------/Roaming---------

**/Profiles//crashes/
**/Profiles//minidumps/

---------DRM---------

**/Profiles//gmp/
**/Profiles//gmp-gmpopenh264/
**/Profiles/*/gmp-widevinecdm/

---------Report---------

**/Profiles/*/memory-report.json.gz

---------Certificate Data---------

!/Profiles/*/cert9.db
!/Profiles//cert_override.txt
!**/Profiles//pkcs11.txt
!/Profiles/*/SiteSecurityServiceState.bin
!/Profiles/*/security_state/

---------Features---------

**/Profiles//features/
**/Profiles//ExperimentStoreData.json
**/Profiles//shield-preference-experiments.json
**/Profiles//targeting.snapshot.json

---------Other---------

**/Profiles//parent.lock
**/Profiles//broadcast-listeners.json
**/Profiles//domain_to_categories.sqlite
**/Profiles//enumerate_devices.txt
**/Profiles//chat-store.sqlite
**/Profiles//bounce-tracking-protection.sqlite
**/Profiles//breach-alerts.db
**/Profiles//domain_to_categories.sqlite
**/Profiles//webappsstore.sqlite


1 Like