Re: synchronize and delete at one step
I have added this topic to FAQ:
https://winscp.net/eng/docs/faq_delete_synchronized_files
https://winscp.net/eng/docs/faq_delete_synchronized_files
rm after get or synchronize. In that case, I will take the risk files being deleted that are added to the remote folder during the synchronize or get process. Is there an option to delete the files within the synchronize process or use local filenames-list in the rm command-'array'?
Basically My local folder test should get synchronize from the Remote folder, and after the synchronization is done, I should the delete the files from the Remote server.
get -delete instead of synchronize, shouldn't you?
C:\> winscp.com /command "option confirm on" "option include "ven*.pgp"" "open sftp://user:pass@RemoteServer" "synchronize local c:\Test\ /remoteFolder -delete" "exit"
Or do I have to get them away withrm?
option batch on
option confirm off
option exclude "*_110-*; *_210-*"
synchronize remote -delete d:\docs\test /srv/blabla
close
exit
"*_110-*; *_210-*"?
rm?