Sync Remote Remote directory with a local Directory
I am facing an issue where a wrote this script to sync Remote directory with Local Directory and every time the script runs I get
Nothing to synchronize.
C:\Users\axel.ntore\Documents\Ntore>"C:\Program Files (x86)\WinSCP\winscp.com" /scri pt=C:\Users\axel.ntore\Documents\Ntore\syncfilescriptwinscp.txt batch abort confirm off Searching for host... Connecting to host... Authenticating... Using username "user001". Authenticating with pre-entered password. Authenticated. Starting the session... Session started. Active session: [1] user001@172.28.66.19 Using configured synchronization options different from factory defaults. Comparing... Local 'C:\Users\axel.ntore\Documents\031722\031722' => Remote '/' Nothing to synchronize. C:\Users\axel.ntore\Documents\Ntore>pause Press any key to continue . . .
option batch abort option confirm off open sftp://user001@172.28.66.19 -hostkey="ssh-ed25519 255 AwCsIqqS6p8caWKAOYNtQwkU2ae2xtG5wnIBHU3gOKg=" synchronize remote C:\Users\axel.ntore\Documents\031722\031722 / exit
"C:\Program Files (x86)\WinSCP\winscp.com" /script=C:\Users\axel.ntore\Documents\Ntore\syncfilescriptwinscp.txt pause
If any details missing to understand the file transfer automation let me know.
Axel N