In my current work setup, I have two offices and, like many astronomers, multiple computers. While ideally, my MacBook Air is my primary machine, DropBox has enabled me to get my most vital data and applications (1Password, Things, and BibDesk) synced up between my laptop and home and office desktop computers.
This is Part 1 of a two-part series. This entry is all about DropBox while in in Part 2, I’ll describe how I’m using Fruux to keep my iCal and Address Book (and Google Contacts) all in sync. But for the moment, read on to find out all the ways I use DropBox!
First, a disclaimer. Keeping things in sync across multiple computers is a tricky business. Before playing around with anything, BACKUP, ensure that you understand what you expect to happen on all the computers, and do things one step at a time. Once syncing is setup, the best practice is to quit apps that are accessing a synced file that you might access from another computer. So, bottom line, BACKUP, don’t go forth blindly, be cautious, and always quit/close synced applications/documents when leaving your home/office/lab computer. Alright, now that that is out of the way…
DropBox is a magical service that enables you to sync, share, and backup files across platforms, including the iPhone, via the cloud. The first 2 GB of storage are free and there is a monthly fee for up to 100 GB. In addition to accessing your personal files, DropBox is also a great alternative to FTP and email attachments for sharing large files (including .mp3s) with collaborators. On the iPhone, if you mark a file as a Favorite, it will be stored locally and accessible when your offline. (I use this feature to keep the NYC bus map at my fingertips.)
The best workflow I’ve settled on is maintaining a traditional directory structure on my primary computer (Sarah, the MacBook Air head) and putting symbolic links (with SymbolicLinker) to the directories I want to sync (e.g., Proposals/, Pubs In Progress/, Observing Runs/, AstroBetter/) in DropBox/. On the secondary computers (Sonia, the office iMac, and Nancy, the home Mac Mini), the DropBox/ folder functions as my Documents/ folder.
In addition to just documents, DropBox can help you keep applications in sync as well. I’ve found that the most useful app to keep synced up is 1Password, for its superb password management, seemless integration with most web browsers, and iPhone app. With DropBox keeping your 1Password database in sync, you can create a new login at work and use it at home without writing anything down (or even ever seeing the automatically generated password). The trick is to simply move 1Password’s keychain file to DropBox/ from its default location in ~/Library/Application Support/ on all of the Macs and then point 1Password to the new location in Preferences > General > DataFile. I only sync the 1Password iPhone app with my primary computer, but I don’t think it would be a problem to sync with the secondary computers. Update 2/15/2010: Syncing on the secondary computers totally works.
Another app that I use almost everyday on multiple computers is my favorite task manager, Things. Similar to 1Password, all you have to do is move the Things database from ~/Library/Application Support/Cultured Code/ to DropBox/. To point Things to the new location, launch the app while holding down the Option/Alt key. Two things to be aware of: 1) never have Things open at two locations at once or the database might become corrupted and 2) if you use the AutoUpdate feature to update to a new version of Things on one computer, you will likely have to update by hand on the other computers before it will open the database that was “created by a newer version.” Again, I only sync Things on my iPhone with my primary computer, but syncing with the secondary computers would probably work. Update 2/15/2010: Syncing on the secondary computers totally works.
BibDesk is another app that’s useful to keep in sync (especially since I read astro-ph at home on a secondary computer in the mornings). In my installation of LaTeX, the .bib file lives in ~/Library/texmf/bibtex/bib/ and since I want it to remain here for BibTex to find, I simply made a symbolic link to it in DropBox/. To keep the PDF library in sync is a little trickier: First, quit DropBox on all computers. On the primary computer, put a symbolic link to /Documents/Papers/ in Dropbox/, open and sync DropBox on the primary computer. Open DropBox on the secondary computers and wait for them to finish syncing. Finally, on the secondary computers, put a symbolic link in Documents/ to DropBox/Papers (the opposite of what’s on the primary computer). On all of the computers, I autofile PDFs to /Documents/Papers/ and, so far, it works beautifully!
In Part 2, I’ll describe how I got Fruux to keep my iCal and Address Book (and Google Contacts) all in sync.
How do you use DropBox? Let’s hear it in the comments!