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

shaneclulow

Automatic Synchornisation to SFTP client and local file

Hey guys.

I am a definite newbie when it come to this.

I have created a text file to synchonize the files both on my local machine as well as on my SFTP site.
This is the sync.txt file

option batch on
option confirm off
open Test
synchronize both "C:\Testing" "/AEU/Testing"
exit

I have created a bat file to run winSCP and the txt file but it doesnt seem to work.

.bat file
C:\Program Files\WinSCP\winscp.exe/console/script=C:\Users\admin\Desktop\sync.txt /log=C:\synclog.txt

Can someone assist me? Im looking to have both folders mirrored, so if the one has a file loaded to it, it automatically syncs to the otherone. I am looking to run this scripting file every 5 minutes.

Is this possible? any assistance will be appreciated.