In this tutorial I’m going to show you how to sync your Opera 12 bookmarks, history, and mail using Dropbox. It involves doing some annoying things to your files (symlinking, etc.) so that Dropbox does the hard work of keeping your bookmarks, mail, history, etc., updated across your various computers. On the bright side, you should only have to do it once.
This post assumes you are a Dropbox user, and you have Opera 12 installed on multiple computers. It doesn’t cover mobile devices, since there was never a mobile version of Opera’s desktop browser.
These instructions work for Linux and the Mac. I would like to do this on my Windows laptop too, but I haven’t been able to get it to work yet. I can’t seem to get Opera to use a link to a folder as if it’s a real folder. If someone knows how to do this, feel free to leave a comment.
One more thing:
OK, now that I’ve shouted a disclaimer at you, let’s do this.
You may have some concerns about Dropbox’s file synchronization messing up your stuff. For what it’s worth, I’ve been doing this for several months now, and have found that for the most part it just works. In my experience Dropbox basically just handles file updates with no drama.
If it does encounter drama (e.g., finds that it can’t handle a conflict between two different versions of a file), it creates a new version of the file called something like “
autosave\ (glamdring2's\ conflicted\ copy\ 2016-02-27).win“, where “glamdring2” is the name of the computer with the conflicted file.
This means you can manually fix things if you have to, but you basically never have to as long as you take care to shut down Opera on computer A and wait until Dropbox is fully synced to start Opera on computer B. This normally takes just a few seconds.
Remember, you should not be doing this with your only copy of your Opera folder. You need to keep regular backups of your Opera folder, and syncing is not a backup.
Because Opera is a pretty sane app, it stores all of its junk in one folder (with the exception of the Mac version, about which more below).
Depending on your platform, you’ll find the folder in different places. For more information about where your version of Opera stores its files, see Files used by Opera.
On Linux, it’s easy. Everything is in
On Mac, there is a slight wrinkle. Opera 12 stores your Opera prefs and bookmarks in one place, and your mail in another. This means we need to get them all together in one place so we can sync them with Dropbox.
According to the link above, here’s where your bookmarks, history, etc. are stored if you’re a Mac user:
And it stores your mail in:
This is because (according to the docs), user data of “significant size” should go into this other random folder. Um, okay.
In any case, in order to get your Mac install of Opera 12 to work with the actual mail you’ll be syncing in your Dropbox folder, you need to do some goofy stuff with symbolic links, namely:
$ cd ~/Library/Application Support/Opera/ $ mv mail ~/Library/Opera $ ln -s ~/Library/Opera/mail .
Now everything should all be in
~/Library/Opera (Mac) or
Now that we have all of our Opera things in one place, let’s copy the single Opera folder into Dropbox and link it back to wherever your Opera app is expecting the folder to be. On Linux you would do something like this in your terminal – note that Opera should not be running when you do this:
$ mv ~/.opera ~/.opera.bak # Minimal backup copy, you should really do more $ cp -R ~/.opera.bak ~/Dropbox/opera_config
For Mac it’s pretty similar:
$ mv ~/Library/Support/Opera ~/Library/Support/Opera.bak # Minimal backup copy $ cp -R ~/Library/Opera.bak ~/Dropbox/opera_config
In English, this:
- Makes a backup of your Opera folder so if something gets messed up, you can put things back the way they were
- Copies the backup into your Dropbox folder, where it can be synced across all of your machines
Now we need to make it look to the Opera 12 app like everything is totally normal. We’ll do that by creating a link from the folder sitting in Dropbox back to where the app expects it to be.
Again, I’m really happy to hear from people about how to do this on Windows. Thus far all of my attempts have failed, and the way Windows handles what it calls “links” seems basically Crazytown. But it’s probably just that I don’t understand them well enough.
Anyway, here’s how you do the linking on Linux:
$ ln -s ~/Dropbox/opera_config ~/.opera
And on Mac:
$ ln -s ~/Dropbox/opera_config ~/Library/Opera
At this point you should be syncing your mail, bookmarks, history, and sessions across computers. When you shut down Opera 12 on your work machine (a Mac laptop), you can open up Opera 12 on your home workstation running Linux and be in the same session, looking at the same tabs and emails. Everything should just magically work.
If it doesn’t, please let me know in the comments and I’ll try to help.