SFTP - Windows Script to Automate Synchronize Remote to Local Directory using WinSCP
WinSCP Script - https://goo.gl/XyYXTp
WinSCP - Batch File - https://goo.gl/PBcNz6
WinSCP Download (download Portable) - https://winscp.net/eng/download.php
WinSCP Scripting Resource - https://winscp.net/eng/docs/scripting
Demo of using WinSCP to script the automation of synchronizing Remote SFTP directory with a Local Directory
Closed Caption:
so I'm going to demonstrate here how to
do synchronization between a smtp server
in a local directory so i have here
winscp
and you can get that from winscp dotnet
and i'm going to log in here
and you'll notice it's going to prompt
me for a host key what I'm going to do
here is copy the fingerprint so i'm
going to copy the key and i'll be using
the key in my script later on I'm going
to click no here to save the key and now
you see in my remote directory I have a
source folder and my source folder i
have six files and in my local directory
only have the two files and i'm going to
automate the copy or synchronization of
the remote directory to my local
directory and what I've done here again
in my winscp folder i have a script that
I created
and in the script is the host key that i
just copied so if i pasted my host key
now you'll see it's the same host that i
have over there and i put in the
protocol smtp the username the password
the server
and also the command to synchronize
locally so the command here
is remote local or both and i'm gonna
copy to my local directory which is this
directory right here and from the remote
directory which is this directory here
and so now just going to execute the
script now if you want more information
go to this site where you can also
download winscp
so I'm not gonna save that because i
didn't make any changes and you'll see
in my batch file here I simply have this
command to call the script and I pause
it for demonstration purposes I'm going
to run this script now and you'll see in
the background here
it will copy
these files locally
it's now logging in and you see it's
copying them
and that's really it that that's how you
quickly do synchronization between this
ftp server
local directory and thank you for
watching
Video Length: 02:31
Uploaded By: CodeCowboyOrg
Published: 9/6/2015
View Count: 178,108