Mendeley free extra storage
Author: Simone Labels:: database syncing, Dropbox, MendeleyMendeley is a wonderful piece of software. If you are even remotely doing something that requires you to have a digital library (and you don't own a mac...), then Mendeley is what you need! It is a digital documents organizer for scientists, or, as they put it, "an academic reference management software for researchers". Mendeley is available for linux (Ubuntu), mac and win. While mac and win have valid alternatives to it, for linux Mendeley represents "the" academic reference resource.
With Mendeley you can keep track of your papers and organize them in groups, arguments, etc, and make them public or private. An interesting feature of Mendeley is the possibility of storing your library on a dedicated server. The papers are always synchronized with every machine on which the program is installed. So you can have your library wherever you go. The program gives the end user 500Mb of free space and 500Mb for shared groups, which you can create to share important paper with a group of collaborators. Practically, this becomes a 1Gb storage, because it is not mandatory to share your shared group with anybody but yourself. Mendeley also is able to rename your file and categorize them in different folders according to names, journals, years, etc. There is a "Watch a folder" option which scans recursively a directory of your choice and updates your library as new pdf's are added. Very nice, works quite good.
But... Well, just after few years of active research, it is practically guaranteed that the size of a scientific library will easily exceed that quota (my library is over 1Gb). Of course, Mendelely allows you to buy extra storage for a low monthly fee. While I am not against this kind of "premium" system, I think 1Gb of free space is not enough for the average end user, which, in my opinion, (almost) defies the "free" part in "free software". But that's just a small rant.
So here it is what I did (and credit goes to the discussion on Mendeley forums about external servers storage). I am going to use a different server to store my papers, which will allow me to turn off the "online syncing" feature of Mendeley, but still keep my library synchronized across all my computers.
There are a few services one can use to store documents online, personal clouds which, for free, give you the possibility of having always you most important documents, wherever you go. Dropbox is one of them. It allows for 2Gb of free encrypted cloud space. It is easy and fast to install. Once it is installed, it will create a Dropbox folder, which you can place wherever you like (mine is in my home directory).
Since Lucid 10.04, Ubuntu ships with Ubuntu One, a free 2Gb storage on an Ubuntu server. What I am about to write should apply to it to, even though I am afraid there might be a few caveats due to the syncing frequency of the service. If anybody is willing to try and report back, please give me a holler. Just a side note, Microsoft has not invented anything new with its "To the cloud!" ads....
Before starting the process, please make a backup copy of all the files that are involved, including you Mendeley library folder, so that you can revert to them if anything goes wrong. On the good side, the worst that has happened to me has been that my mendeley database needed to be rebuilt. This means that you will lose all the manual changes you have done, and if you had any paper that was deleted from your library but not from your folder, it will be put back in your library. It took me about half an hour to do that, but it was not so bad.
Everything can be done either by command line or by nautilus. The latter is simpler, so I will stick with it. First, make sure Dropbox is not running. You can stop it from the icon in the panel. Then, open Mendeley, go to Tools, then Options. In the "File Organizer" label, make sure that the "Organize my files" option is ticked and take note of the folder. Let us say, that is /home/yourusername/Mendeley Desktop. Close the options dialog, then go to the main window, above all your documents, and click on "Edit Settings". Untick the "Synchronize attached files" button. In this way, the program will no longer upload your files to the mendeley server. Close Mendeley, then move your mendeley library folder to your Dropbox folder (cut and paste works fine).
Go to your Dropbox folder and create a link to your Mendeley library folder (right click -> Make Link), then move it to where the Mendeley library folder previously was (the path you noted in your Mendeley options, to be clear). Be sure to rename it, removing the "Link to..." part, so it is identical to the "Organize my files" folder. If you like, you can actually make this your "watched" folder, even though I prefer to have them separated. In this way, I don't need to make periodic backups of my library ;)
Now we have to synchronize the Mendeley database. For linux, the database is in the directory:
~/.local/share/data/Mendeley Ltd./Mendeley Desktop/
Nautilus hides by default hidden files and directories. In order to find the .local directory, open nautilus, then select View -> Show hidden files (or Ctrl-H). Find the aforementioned directory, then move the .sqlite file which has the email address you used to register to Mendeley to the Dropbox directory. In my case, this file is www.newcolour78@gmail.com@mendeley.com.sqlite . Go to the Dropbox folder and make a link to the file you just copied (Right click -> Make link), then copy the link back to the directory where the database file was ( ~/.local/share/data/Mendeley Ltd./Mendeley Desktop/ ). Be sure to rename it, removing the "Link to..." part in front it.
And we are magically done! Start Dropbox and go get yourself a coffee while it syncs your massive library to its server. One note of caution: Dropbox syncs files in real time. This may create conflicts between different databases which are open at the same time on different machines. In order to avoid this problem, I follow this protocol:
- Start from Dropbox and Mendeley closed in all your machines
- Open Dropbox on machine A and let it sync your database
- Close Dropbox and open Mendeley on machine A. Do your work for your 10 hours (right?)
- Close Mendeley, open Dropbox on machine A, let it sync your database, then close it
- Open Dropbox on machine B, let it sync your database and your files changes
- Close Dropbox and open Mendeley on machine B. Your database is now up to date, including your notes and highlights