windows sceduler and rsync over ssh: need help please
Hello
I'm currently trying to back up my windows machine every night using SSH and rsync. I have written a batch file: Code:
At the moment, if I just run the batch file manually, EVERYTHING works perfectly!!! However, when the batch file is run by windows scheduler, it does not understand that the idenfication is set and that it doesn't need a password. It says: Code:
C:\>c:\iskm\bin\rsync -alv -e ssh --delete-after /cygdrive/c/iskm/ hamish@hamishnet.homelinux.com:/tmp/test/ Code:
Are you sure you want to continue connecting (yes/no)? yes I has tested this same scenario with simple SSHing, and I get the same problem. Is this a scheduler problem? That is, not allowing automated connection with remote machines? or can it not find the required programme? Thanks in advance for all your suggestions. Hamish |
This is a windows scheduler problem.
the ssh.exe program is looking for the user's ssh config. Make sure you are running this as yourself in the scheduler (it asks what user to use). I don't know which rsync/ssh .exe you are using. See if it defines where the ssh_config file is located, as this is the same dir as id_dsa (your private key). There probably is an evironment variable that needs to be set. Good Luck, chris |
Hey
I gave up with scheduler (sadly) and downloaded a small, simple, free seperate scheduler. Everything is working a treat now!! Thanks for your help. Hamish |
what software to use
Quote:
|
All times are GMT -5. The time now is 08:28 AM. |