Thank you, Martin! Vote submitted.
- labsy
SynchronizationResult
.
Total files compared: 19.834 files
Transferred 148 files
Ignored, already exist: 19.686 files
Errors: 0
....
set mylogfile="%scriptdir%log\log-images.log"
set myfilemask=*.jpg;*.jpeg;*.gif;*.png;*.eps;*.jfif;*.tif;*.pdf
set mysource=\\localserver\webcatalog\IMAGES
set mytarget=/srv/web_system/data/import/IMAGES
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log=%mylogfile% /loglevel=-1 /logsize=10*10M /ini=nul ^
/command ^
"open sftp://webserveruser@11.22.33.44/ -hostkey=""ssh-ed25519 255 sfR49KssEegervwcefZp3z72sfvwxKF8521Lq7MwR7i="" -privatekey=""D:\SOME-SHARE\SYNC\CERTS\priv-rsa-key-20210829-webserveruser.ppk""" ^
"synchronize remote -filemask=%myfilemask% -criteria=either %mysource% %mytarget%" ^
"close" ^
"exit"
....