Thanks, Scott and Cameron! I got it working. I created a Wiki article (http://wiki.dreamhost.com/DeltaCopy) summarizing the steps to take, but here's my log in case its helpful. You are more than welcome to make changes to the Wiki article.
I changed destination from "/testdir/test.txt" to "~/testdir/test.txt", added the -e parameter, turned on ssh, and ran it again. After 15-25 seconds, my virus protection software and my firewall both popped up with warnings about rsync. While I was whitelisting it, rsync failed, but at least it got further:
************************************************************
Executing: rsync.exe -v -rlt -z --delete -e "/cygdrive/C/test.txt" "b######@backup.dreamhost.com:~/testdir/test.txt"
rsync: Failed to exec /cygdrive/C/test.txt: No such file or directory (2)
rsync error: error in IPC code (code 14) at /home/lapo/packaging/tmp/rsync-2.6.6/pipe.c(83)
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/tmp/rsync-2.6.6/io.c(434)
Error in rsync protocol data stream
Profile 'Daily' executed in 39625 milliseconds. One or more errors were encountered.
************************************************************
Then, per
http://discussion.dreamhost.com/showthreaded.pl?Cat=0&Board=forum_troubleshooting&Number=112822, I ran rsync from the Windows command line:
************************************************************
Start > Run > cmd.exe
C:\>cd \Program Files\Synametrics Technologies\DeltaCopy
C:\Program Files\Synametrics Technologies\DeltaCopy>rsync.exe -v -rlt -z -e ssh --delete "/cygdrive/C:/test.txt" "b######@backup.dreamhost.com:~/testdir/test.txt"
The authenticity of host 'backup.dreamhost.com (205.196.216.115)' can't be established.
RSA key fingerprint is [hash]
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'backup.dreamhost.com,205.196.216.115' (RSA) to the list of known hosts.
b######@backup.dreamhost.com's password:
building file list ... rsync: link_stat "/cygdrive/C:/test.txt" failed: No such file or directory (2)
done
sent 25 bytes received 20 bytes 1.48 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /home/lapo/packaging/tmp/rsync-2.6.6/main.c(791)
************************************************************
I followed the instructions at (http://www.aboutmyip.com/AboutMyXApp/FAQList.do?cid=1), "Can I use SSH with DeltaCopy?" to download and install cygwin. The 'ssh-keygen' command failed the first time I ran it, and the DeltaCopy FAQ isn't terribly clear about which SSH module is needed, but installing these four got it to work:
- autossh
- libssh2
- libssh2-devel
- libssh2_1
Any thoughts on which of these are need and which aren't? Feel free to cull down the list in the wiki.
The FAQ instructs you to place the key in /cygdrive/c/Program\ Files/Synametrics\ Technologies/DeltaCopy/sshkey. I found that /cygdrive/c/Program Files/Synametrics Technologies/DeltaCopy/sshkey works; apparently, cygwin adds forward-slashes (escape characters?) before spaces, so that /cygdrive/c/Program\ Files/Synametrics\ Technologies/DeltaCopy/sshkey actually becomes /cygdrive/c/Program\\ Files/Synametrics\\ Technologies/DeltaCopy/sshkey. I've notified the webmaster and omitted the extra slashes in the wiki article.
I had to copy cygwin1.dll from C:\cygwin\bin to the C:\Program Files\Synametrics Technologies\DeltaCopy\ directory.
DelataCopy still hung. I had to run rsync from the command line, and verify backup.dreamhost.com the first time:
************************************************************
C:\Program Files\Synametrics Technologies\DeltaCopy>rsync.exe -v -rlt -z --delete -e "ssh -l b###### -i sshkey" "/cygdrive/C/test.txt" "b######@backup.dreamhost.com:~/testdir/test.txt"
The authenticity of host 'backup.dreamhost.com (205.196.216.115)' can't be established.
RSA key fingerprint is [hash].
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'backup.dreamhost.com,205.196.216.115' (RSA) to the list of known hosts.
building file list ... done
test.txt
sent 108 bytes received 42 bytes 14.29 bytes/sec
total size is 19 speedup is 0.13
************************************************************
After that, it ran fine in DeltaCopy:
************************************************************
Executing: rsync.exe -v -rlt -z --delete -e "ssh -l b287184 -i sshkey" "/cygdrive/C/test.txt" "b######@backup.dreamhost.com:~/testdir/test.txt"
building file list ...
done
sent 47 bytes received 20 bytes 14.89 bytes/sec
total size is 19 speedup is 0.28
Profile 'Daily' executed in 4843 milliseconds. It ran successfully.
************************************************************