[HELP NEEDED] Scheduled task sync not working
Hi
For some reason I cannot get the synchronization working. When I run the task it just gives me a quick flicker and then nothing - no log, nothing.. I have tried following the FAQ and this is my setup (below). If I add user@host in the command line, the script will run fine manually, but still nothing when I run it through the scheduler.
Task is pointing at:
c:\sync.bat
sync.bat looks like this:
winscp.exe /ini=user@host.ini /script=user@host.txt /log=user@host.log
The ini holds:
[Configuration\CDCache]
user@host=*lots of data*
[SshHostKeys]
rsa2@22:host=*lots of data*
[Configuration\Interface]
[Configuration\Logging]
[etc...]
bla
bla
[Sessions\user@host]
HostName=myserver.com
UserName=user
PublicKeyFile=*path to key*
FSProtocol=0
RemoteDirectory=*remote dir*
script.txt holds:
option batch continue
option confirm off
option synchdelete on
option transfer automatic
synchronize remote "local dir" "remote dir"
synchronize both "another local dir" "another remote dir"
exit
Am I missing something obvious here? I'm no computer wiz, so please help me get this going.
For some reason I cannot get the synchronization working. When I run the task it just gives me a quick flicker and then nothing - no log, nothing.. I have tried following the FAQ and this is my setup (below). If I add user@host in the command line, the script will run fine manually, but still nothing when I run it through the scheduler.
Task is pointing at:
c:\sync.bat
sync.bat looks like this:
winscp.exe /ini=user@host.ini /script=user@host.txt /log=user@host.log
The ini holds:
[Configuration\CDCache]
user@host=*lots of data*
[SshHostKeys]
rsa2@22:host=*lots of data*
[Configuration\Interface]
[Configuration\Logging]
[etc...]
bla
bla
[Sessions\user@host]
HostName=myserver.com
UserName=user
PublicKeyFile=*path to key*
FSProtocol=0
RemoteDirectory=*remote dir*
script.txt holds:
option batch continue
option confirm off
option synchdelete on
option transfer automatic
synchronize remote "local dir" "remote dir"
synchronize both "another local dir" "another remote dir"
exit
Am I missing something obvious here? I'm no computer wiz, so please help me get this going.