Change from Synchronization to Upload & Delete?

Advertisement

BCT-Tech
Joined:
Posts:
2
Location:
CA

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

Reply with quote

Advertisement

BCT-Tech
Joined:
Posts:
2
Location:
CA

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

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

Reply with quote

Advertisement

You can post new topics in this forum