Posts Tagged ‘sync’

Sync Firefox bookmarks to Dropbox

19, May 2010

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.