https://winscp.net/eng/docs/task_keep_up_to_date discusses "keep remote directory up to date."
But it says "This will not save transfer settings. You can change default transfer settings in preferences. Note that defaults affect function Synchronize as well.'
Thus I would like to understand how to save "keep remote directory up to date" setting so that it will update the remote wheneverI start Winscp without going through the setup each time.
*Follow-up: the command line option is
winscp.com /ini=nul /log=c:\writable\path\to\synchronize.log /command ^
"open sftp://username:password@example.com/" ^
"keepuptodate C:\local\path /remote/path" ^
"exit"
Would you explain this command line option in more details? How does it work for private key/public key authentication for
//username:password@example.com/"
?
*Follow-up2: I can make things work with GUI. But in Win10 shortcut, when I type
winscp.exe session -keepuptodate Ctest -home2-(my username)
It says "the shortcut name you entered either contained characters that are invalid for file names or was too long." What is the next step?