Saturday 17 January 2015

Automate backup of your Firefox bookmarks and keep it in Dropbox

Firefox creates a backup of bookmarks in JSON format (Import and Backup > Restore > Choose File) once a day and keeps 15 copies (this can be modified) in the user's profile. To keep these safe, it's wise to copy and store these files online e.g. in Dropbox. So first create a Dropbox account and install the software locally in Windows. This creates a folder under the user's profile and syncs the content of the folder with the online storage.

The location of the bookmarks backup is:

C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\6iom19xn.default\bookmarkbackups\

The location of the local Dropbox folder is:

C:\Users\username\Dropbox\

A simple batch script scheduled to run daily (on startup or logon or at a specific time) will copy the files to the Dropbox folder.

XCOPY "C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\*********.default\bookmarkbackups" "C:\Users\username\Dropbox\ff_favs\" /D /E /C /R /I /K /Y

Once there, they will be uploaded online by Dropbox software.

This is for Windows 7 and Firefox 35.0.

How to change the number of bookmark backups in Firefox
Need to automate export/import or backup bookmarks for an organzation

No comments:

Post a Comment