Sync Firefox bookmarks to Dropbox

I’ve tried all the Firefox add-ons to sync bookmarks between PC’s and found them all to be unreliable at times so I decided to try Dropbox. I do have an Ubuntu One account but I have had problems syncing my tomboy notes to it and it often does not sync at all during my session so as my Dropbox account seems to sync everything very quickly and accurately I decided to use that.

First I closed Firefox and copied the bookmarks database called places.sqlite from my hidden Firefox profile in my home folder at /home/martin/.mozilla/firefox/57k8ls89.default to a folder in my Dropbox account called bookmarks then renamed the original to places.sqlite.bak

In a Terminal I cd in to the Firefox profile with;

$ cd /home/martin/.mozilla/firefox/57k8ls89.default

copied the database across with;

$ cp places.sqlite /home/martin/Dropbox/bookmarks/places.sqlite

renamed the original with;

$ mv places.sqlite places.sqlite.bak

And then sym linked the Dropbox copy back to the Firefox profile with;

$ ln -s /home/martin/Dropbox/bookmarks/places.sqlite places.sqlite

Now when I re launch Firefox if uses the bookmarks database in Dropbox and I can do the same on my laptop so they both use the same set of bookmarks.

Note : [Thanks to Barbara below]

Although this method works fine with several PC’s/Laptops for me I have found as has Barbara that Dropbox cannot cope with multiple browsers open at the same time. Dropbox will save conflicted copies of the sqlite file which will mean any changes you make are lost next time the browser is closed and opened again. So the rule is only one browser open at a time on one PC.

Advertisements

Tags: , , , , , , ,

2 Responses to “Sync Firefox bookmarks to Dropbox”

  1. BethL Says:

    I’ve been looking for exactly this solution, I just wasn’t sure how much of the profile I needed to copy. Thanks a million!

  2. Barbara Says:

    So, I found your blog when trying to figure out my options given Xmarks imminent demise. I think this is an elegant solution and much more streamline (and less resource intensive) than using firefox’s sync.

    One note that I would provide to individuals reading this: you need to close the browser in order for the bookmarks to sync. It hasn’t been my practice to close firefox when I move to various computers at home and work and I need to start getting into that habit.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: