
A lot of people use more than one computing device, working on a document when at work and on the same thing at home entails either carrying it around in a pen drive or a USB disk or emailing it to yourself. Many times you end up with multiple copies of the same file saved here and there and it leaves you unsure about which one is current, or your mailbox full of attachments. A pen drive can be lost or misplaced and a USB hard drive can in addition be dropped and be damaged. Some drives might come with vault programs, but in these times of multiple operating systems, you cannot be sure if it will run on the Mac and on Linux . A cure to all these ailments is of course to use a Notebook/Laptop and lug it between your home and office. It has its advantages, built in battery backup etc.. but heavy users will also know of the down side…
…heavy to carry, cramped keyboard, bad posture, lower back problems etc… Another effect of the crash of market prices of laptops has been the decrease in build quality. Laptops now are not as sturdy as they used to be years ago and models keep changing very fast. Many of them go dead with heavy usage, end up with damaged hinges or the boards go kaput. A simple solution (what I do at work) of course would be to use a desktop monitor and a USB keyboard/mouse and operate it like a desktop, however I prefer the sync method to keep my data up to date. This is basically a log of the different methods I’ve tried and what I’m currently using. There are four ways in which this can be approached.
I’ve tried the first option here and these are the cons… I can’t think about any pro’s like I did when I first posted the article on portable Apps:
For the second approach, you need access to your office server via ftp, ssh, or need to have purchased space on the Internet. Here you can use Syncback to accomplish ftp sync with the server or rsync via ssh to accomplish the same.
Syncback is easier to setup, but is available only for Windows. I have however successfully wined it on Linux. As per my experience, I found it suitable more for backup from a single machine to a server than for syncing (both ways) from multiple locations. Often if the time stamp was screwed up (Particularly on using different operating systems on both ends), on a two way sync I’d end up with old data mysteriously reappearing and current data vanishing. I’ve messed up similarly with rsync and once had my all my music disappear into never never land. I however successfully use Syncback on my computer to back up my website (one way) to my laptop since plugin upgrades occur regularly and it is always easier and quicker to backup only changed files.

Here is the Syncback log file when I use it for backing up my site. This is however a an example of a one way sync. Ideally we need a reliable two way sync.
In the above screenshot, you can see the three possible scenarios that a backup of my website would present:
In option three, Syncback and rsync also work in a similar way (and obviously faster) between a PC and a Pen drive or USB /firewire hard disk. You can use it as a backup device on both the computers. (like above, I would usually set it to delete files deleted from the source so I had an exact replica of the source on my disk). However the danger of the software misunderstanding the date/time stamps mentioned above is always everpresent on two way syncs, especially on dissimilar operating systems, computers with unsynchronised clocks or more so when wined under Linux, as you never know for sure how it will work as it was meant only for Windows!
Option four is what I am currently using… (I’m currently running Ubuntu 9.10 Desktop, you could probably adapt this technique for Windows or the Mac too.)
Here it is in detail, I first dissected my data and made a list of what I wanted to synchronise..
The first part was to figure out what free online resources were available for use, I found four solutions.
Three items were struck off my list. Next I evaluated Ubuntu one and realised that in its current avatar it was totally unreliable for any work or home related purposes, in the future it would be a good bet for Linux users as they can sync their Evolution contacts, Tomboy Notes and a folder called Ubuntu one in their home folder free to a limit of 2 Gb. It aslo has a web based interface accessible on the Net to manipulate your data online.
I checked online for similar solutions and I found two instances of Dropbox. One was a GPL based (written in Perl) implementation and the other a commercial derivative (probably) going by the same name. Dropbox does similar things that Ubuntu one does but has a lot of additional features such as maintaining older file versions of your documents, something like what Vista does. The best part however is that it works on Windows, the Mac and on Linux, so you could sync between two or more computers having differing operating systems.
The method I used for syncing my remaining data is identical for all the left out items on my list. As an example, I am showing you how I sync my feed list on Liferea. You can adapt it for the other examples on my list or sync your own requirements. I have chosen here to sync a single file, but you can do the same for a whole folder. (That is what I had to do to sync my GNUcash data)
Before we start, a first a few pre-requisites…
The reason that I am synchronising only the feed list instead of the whole folder is that, like Ubuntu One, Dropbox has a free limit of 2Gb only, so you have to be choosy of what you want to put into it. I’ve now got my recipe database, GNUCash data, Lifera feed list, Firefox data, Evolution Address book, Calendar and Gmail, synced to my satisfaction and have stopped carrying my laptop home. I always have my data waiting ahead of me at home or at work!
Notes:
When using automatic folder synchronization like Ubuntu one or Dropbox, Make sure that the service has finished synchronizing your data before you shut down your system. It could get pretty messy if you modified your accounts data at home & reach office and continue to work on it without realising that the data is not current as the sync never completed because you logged off the net or shut down your computer before it happened! You can check the icon of the program as it changes when it is syncing.
I had some issues with Dropbox when running on Ubuntu 9.1 (Karmic). This has happened about three times. On logging into Ubuntu, I get an error message asking me to download and install Dropbox. No matter how many times I do it, the result is the same. One solution, although not ideal is to enable showing hidden files in Nautilus by pressing “Crtl + H” and then deleting the ~/.dropbox folder. (or rm -rf .dropbox from a shell prompt) You will need to re-enter your account details. This sometimes causes two files by different date/times to be created in your Dropbox data folder as Dropbox is unsure as to which one is current. It is easier to avoid this problem by deleting everything in your ~/Dropbox data folder too. WARNING: IF YOU DO THIS, MAKE THAT YOU OR SOME OTHER SOFTWARE HAS NOT MODIFIED ANY DATA IN THAT FOLDER. This follows the assumption that, if you have just logged in to your system, (As that is when the error message pops up) then the copy on the Dropbox servers is current. Due to the above, I also strongly recommend that you do not set any program to run automatically at log on (whose data you are syncing with Dropbox), as even if you did not modify any data in it, the date and time stamps will change and cause Dropbox to resync those files or create duplicate files with different date/times which you will have to check manually and later delete one of them … unnecessary work!
The next time this happens, I’ll try to figure out the offending file so that we don’t have to delete the whole folder and loose all settings.
If you would like to make a comment, please fill out the form below.
I have tried the fourth method with liferea however whenever I add new subscriptions, liferea deletes my shortcut and creates a new feeds file.
Hi Emmanuel. I am currently out of station on a long trip, will check out as soon as I get back. Sorry.