So Ive been looking into taking a windows 2k machine and backing up my documents to a debian box over ssh. I am using putty as my ssh client and have tried many different ways to connect and get it to backup my files. Could someone possibly show me an example and what the examples mean so that I may write a proper script for this. This is what I have come up with. Ive tried this:
@ECHO OFF
SET SECHAW_IDENTITY="C:\Program Files\cwRsync\doc\ssh-keygen.html"
SET SECHAW_TYPE=ssh
SET SECHAW_LOCALPORT=9119
SET SECHAW_SERVER=68.116.46.17
SET SECHAW_SERVERPORT=873
SET SECHAW_USER=SvcwRsync
SET SECHAW_CMD="C:\Program Files\cwRsync\bin\rsync.exe" rsync -r /cygdrive/c/MyDocuments/ 68.116.46.17:/home/blackrose/Backup/
SET SECHAW_TUNNEL=ssh -i "C:\Program Files\cwRsync\doc\ssh-keygen.html" -L 9119:127.0.0.1:873 SvcwRsync@68.116.46.17 -T -N
"C:\Program Files\cwRsync\bin\sechaw.exe" --verbose
Also ive tried this:
@ cls
@ echo off
pause
rem Rsync job control file
C:\Cygwin\bin\rsync -vrtz --password-file=C:\Documents and Settings\Administrator\My Documents Blackrose@68.116.46.17::My Documents"/cygdrive/c/WINDOWS/My Documents/"
C:\Cygwin\bin\rsync -vrtz --password-file=C:\Documents and Settings\Administrator\My Documents Blackrose@68.116.46.17::My Documents "/cygdrive/c/Documents and Settings/administrator/My Documents/"