Apr 2009 08

Dropbox Rocks

One of the most inconvenient things about working on computers is keeping all of your data files current.  I have my main workhorse, the 24″ iMac, and the Macbook for taking it on the road or doing presentations.  Both are set up almost identically as far as server and software configurations.  The hassle comes when I’ve been working all day on a project from my home office, and then I get a call to drive up to the main office 2.5 hours away.  Then, my work files have been updated one one machine, but not the other.  Sometimes I’ve made changes to a number of projects, and it’s hard to keep track of which files to copy over.  Usually I would fire up Chronosync, and run it on my “Sites” folder so both machines would be up to date.  If I remember. Now with Dropbox, none of this is necessary – everything just stays up to date automagically.  There is a trick to getting it to work this way.  

One of the limitations of Dropbox is that it will only sync files that are in the Dropbox folder on your hard drive.  That doesn’t do much good if you don’t do all of your work in a location outside of the Dropbox folder, like most people do.  I have established a system that I’ve developed over the years, and like many people I try to make things work with MY system.  In my system, the “Sites” folder in my home directory is home to all of my work – my day job and my freelance.  Coldfusion looks there for hosting files, on both machines.  It just works very well for me, and the thought of relocating all of that into a subdirectory of some other software’s folder is just not that cool.  Enter the magic of symbolic links.

Symbolic links (symlink, soft link) are very much like aliases or shortcuts, depending on what OS you’re running.  They act as an alternative doorway to a folder on your system, just as if it was the folder itself.  It’s like having two doors to the same room.  Symbolic links are still files though, and can be manipulated as such.  So, you could take one of your doors to the kitchen and carry it upstairs to the 3rd floor study.  When you open the door it still goes to the kitchen, thus saving the walking down all of those stairs just to get a sandwich.  You could also say that the wardrobe was like a symbolic link to Narnia.  The difference between aliases and symbolic links is that an alias (or shortcut) is just like a springboard TO a location, whereas a symlink is an actual doorway.

Create a Symbolic LinkSo how do you sync folders outside of the Dropbox folder, using Dropbox?  It’s fairly simple.  You will create a symbolic link on each computer with the same name and put it in the Dropbox folder.  Note: if you have a large folder, you will likely need to upgrade from the free 2 gig program to the 50 gig Dropbox plan. (If you Google around enough, you may find a way to get said 50 gig Dropbox plan for 6 months free, after you sign up initially by clicking on any of the Dropbox links throughout this article! Thus helping me get more space for referring you!  :)

  1. Some people are not comfortable playing around in Terminal, so the easiest way to accomplish this is to download a free Finder plugin called Symbolic Linker and follow the directions to install it.
  2. Create a Symbolic Link to your work folder (mine is the “Sites” directory.) Do this for each computer you want to sync your work folder with, and make sure you name all of the newly created Symbolic Links the same.
  3. I recommend closing the Dropbox client on each computer for this step.  On each computer, move the newly created Symbolic Links to the Dropbox folder.
  4. Restart the client on each machine.
  5. Wait forever. (While Dropbox uploads all of your files to your space online.)
  6. Test the process – go to your work folder the usual way you always do, and create a folder “Test Folder”.
  7. Have a gigglefit when “Test Folder” shows up on each of the computers you set this up with!

There are a number of benefits to doing this, other than always having up-to-the-second changes available on all of your gear.  Dropbox keeps versions of files online, so if you need to retrieve something that was accidentally deleted or changed, you can do that.  Also, there is a slick iPhone interface to your Dropbox online, where you can at least view everything that you’ve done.  When you are out on the road and don’t have an Internet connection readily available, everything will be saved normally and when a connection does become available, your files will be synced up immediately.

I have not only done this with my work folder, but my “junk drawer” folder on my desktop for random stuff, as well as my stock art and music compositions folders so I always have the latest and greatest available to me, automagically.

Download Dropbox Here!
Download Symbolic Linker Here!

Pass this on:
  • Facebook
  • StumbleUpon
  • Digg
  • Reddit
  • TwitThis
  • del.icio.us
  • Google Bookmarks
  • MySpace

8 comments

  1. Chris says:

    Seeding the pot: anybody else do this? Is it working out great for you? This is a pretty popular page so somebody must have by now!

  2. Anders says:

    Great tutorial on how to use symlinks with Dropbox! Just got a spanking new MacBook Pro, so now I can keep all my relevant projects in sync with my iMac. Automagically!
    Thank you!

  3. Neil says:

    Great post.

    I have all my files in a folder on a windows server and would like to set up a share with my macbook via dropbox.

    Any idea if this would work?

    Thanks,

    Neil

  4. Herbien says:

    Hi Sir,

    “…make sure you name all of the newly created Symbolic Links the same.”

    “…On each computer, move the newly created Symbolic Links to the Dropbox folder.”

    How can you have 2 files by the same name in the same folder? Am I missing something?

  5. Chris says:

    If you are trying to sync two folders, you have to create a symbolic link for each folder on both computers. Name both symlinks the same.

    While both computers are not connected to Dropbox, drop each symbolic link into your Dropbox folder in the same place on respective computer (e.g. ~/User/Dropbox/symlinkname.) When you connect both computers, since the symlinks are called the same thing, both folders that the symlinks points to will by synced.

  6. Herbien says:

    Thanks for your reply, Chris. Works fine. I will use your tip but I won’t say goodbye to Chronosync, though. A combination of both should be fine!

    Keep it up!

    JPH

  7. Jerry says:

    Chris,
    I know this is an old post, but I just found it and boy am I glad I did! I just set it up, and Dropbox is merrily syncing between 3 Macs right now. So far it looks great, but I’m curious to see how it deals with versioning when stressed.

    I was carrying around a portable harddrive and for over a year, I have been chronosyncing its brains out on my multiple machines. (Chronosync is great program, by the way). After getting a new notebook and highspeed DSL, I wanted to sync into the cloud. I wasted the last few days trying trying to replicate this with Amazon S3; boy that was a mess. I looked into MobileMe, but the lack of security on data transfer turned me off. Finally I went with the 50GB Dropbox (which is Amazon S3 anyway and almost as cheap), and luckily found your page right away.

    Thanks for the great post!

  8. zeus 1 says:

    Your link to Symbolic lnker is outdated – isnt it?

Speak your mind