Re: Synchronize Remote
From the guide it states that it deletes obsolete files, does this mean if a file is deleted from local it will be deleted from remote also?
That's correct.
/command "option batch abort" "option confirm off" "open sftp://test:password@192.168.20.92/" "synchronize remote -delete i:\payroll /home/it/payroll/" /log="c:\users\administrator\desktop\winscp logs\payroll.log" /loglevel=0 "exit"
You have the command-line wrong. The
exit
never happens, it's used a host name instead (what would fail), as you have it after the /log
and /loglevel
switches, not after /command
.
The correct syntax is:
/command "option batch abort" "option confirm off" "open sftp://test:password@192.168.20.92/" "synchronize remote -delete i:\payroll /home/it/payroll/" "exit" /log="c:\users\administrator\desktop\winscp logs\payroll.log" /loglevel=0