I am trying to configure rsync for backing up files on a Windows Server 2008 R2 box to a Ubuntu box. All (non-test) data must be encrypted.
I have managed to get it working using just rsync, recieving date from port 873, but I am having trouble using plink as well.
Here is my configuration:
Ubuntu
rsyncd.conf:
log file = /var/log/rsync.log
[ukwindb1backup]
path = /home/ukwindb1/rsync
comment = Backup
uid = ukwindb1
gid = ukwindb1
use chrott = true
read only = false
auth users = ukwindb1
secrets file = /etc/rsyncd.secrets
Rsync deamon has been started, and there is a "ukwindb1" account, with a SSH public key for authentication. All SSH traffic is on a different port, not 22.
The password for "ukwindb1", stored in the rsyncd.secrets file is not the same as for the Ubuntu account (though passwords are disabled for SSH login).
Windows Server
I have cygwin installed, and have managed to get rsync to work, using this batch file:
rsync.exe -qrtz --password-file=/home/Administrator/secret --delete "/cygdrive/c/Backups" ukwindb1@[removed-ip]::ukwindb1backup
pause
I also have the Putty programs installed, and want to use plink to connect to the other server, so that I can use Pageant to manage my passworded keys.
I tried this batch file, to connect to the SSH server using plink, and it worked fine:
plink -ssh -P [removed-port] -l ukwindb1 -i C:\ukwindb1.ppk [removed-ip]
pause
Now, when I tried this batch file for putting the two together, it failed:
rsync.exe -qrtz -e "plink -ssh -P [removed-port] -l ukwindb1 -i C:\ukwindb1.ppk [removed-ip]" --delete "/cygdrive/c/Backups" ukwindb1@[removed-ip]::ukwindb1backup
pause
Any ideas? What exactly am I doing wrong?
In addition:
Do I actually need the rsync daemon running?
Can I specify a directory on the server, from the client end, rather than "::ukwindb1backup"?