Every time I want to create a symlink on the command line it seems to take me half an hour. I never get the syntax right as many times as I read the documentation, so I’m posting here with what makes sense to me and my use of Dropbox.
Usually I want to relocate a local folder to Dropbox so that it’s backed up. As an example, I might have a mystuff folder in my user’s home directory.
- Move the current
mystufffolder to Dropbox. - Run this from the command line.
ln -s ~/Dropbox/mystuff ~/mystuff
- Enjoy the piece of mind that data is automatically backed up.