Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

BCT-Tech

Do we just change: synchronize remote "D:\Share\" "/users/OurUser/"
To: put -delete "D:\Share\" "/users/OurUser/"

Or: put -delete "D:\Share\*.*" "/users/OurUser/"
BCT-Tech

Change from Synchronization to Upload & Delete?

We are synchronizing files from our local Server to an SFTP Server every 5 min via Scheduled Task.

What do we need to change to keep the local and remote folder structure, upload files only and delete local files after?

This is our current script:

Batch file:
WinSCP.com /script=Upload2SFTP.txt

Upload2SFTP.txt:
open sftp://server.com -hostkey="ssh-rsa 1024 a3:63:9a:f9:33:90:91:97:f5:60:f2:c5:ba:c8:5d:04"
synchronize remote "D:\Share\" "/users/OurUser/"
exit