dotphiles/dotsync — pull request #3 by bdcribbs (2013-04-11 03:33:45+00:00)
Title: Escape $HOME for remote backup location

The current script fails if my $HOME on one machine is not the same path as my $HOME on the remote machine.

I added a separate variable for REMOTEBACKUPDIR which escapes \$HOME so that it is evaluated on the remote server.

I also added "mkdir -p" to the remote invokation to ensure that the directory exists on the remote host (otherwise the backup attempt fails).