I’ve been bad at keeping the actual productivity post to commentary post ratio high here. At the old blog the majority of my posts were about productivity and scripting. I’ve not had time the past couple of months to do this here. So here’s a tip I just gave to someone on Ars.
What’s the easiest way to sync a folder between your laptop and desktop? There are lots of ways to do this. I’ve found the simplest way is Dropbox. The problem is that Dropbox only syncs what’s in the Dropbox folder. However you can use symlinks to sync any arbitrary folder.
On your desktop do the following (assuming you already have Dropbox installed)
ln -s path/to/my/folder ~/Dropbox/folder
Now any change to the original folder will also be on Dropbox and will get synced.
On your laptop do something similar. (If you already have the folder there, change its name so it’s no overwrite)
ln -s ~/Dropbox/folder path/to/my/folder
Obviously change the paths and folder names to what you actually use.
To those of us who use the shell a lot this is obvious. To a lot of more causal users it’s the sort of thing they didn’t know they could do.