I used to use Unison to cobble together a Dropbox-like system, but nowadays it's just easier to use Dropbox itself.
Basically just follow this page:
Follow the command line version of the instructions. With unison, I used my VPS as a central hub in a star configuration. With Dropbox, their servers fulfill this role.