SFTP Windows Script to Automate Synchronize Remote to Local Directory using WinSCP

preview_player
Показать описание
We Cover ......
1. Download WinSCP
2. Set Environment
3. Integrate your Linux login Id, Password in WinSCP for connection
4. Write a batch file
5. Run Script
Рекомендации по теме
Комментарии
Автор

Hi, can you help me with my doubt- if on the destination folder, a file already exist, when we run the sync script will it remove the existing file and move the file from source folder, so that after sync source folder and destination folder will have same number of files and same set of files? OR it will simply move the files from source to destination and thereby creating additional files in destination folder?

saurabhsharma
Автор

Hello Mr. Apoorv Pandey
Thank you for the video related to WinSCP file sync, I found it is very helpful, but have an issue in scheduling this in task manager for repeated synchronization (daily),
Schedule task says it is successfully completed, but no files are synchronized. (it is run with admin privileges)
if I manually run this bat file it gets executed and files get synchronized.

it would be great if you could create a video on this or any hint for this issue.

JometVJ
Автор

It didn't work for me, batch just opens up the winSCP but unable to automatically open the connection. When I manually select the connection and login. It fails with the error local2remote

Can't get attribute of file
No suh file or directory Error code 2

It seems command is looking ofr local2remote.txt file on remote directory somehow. Could you please assist as its important to me\

CloudCons
Автор

Dear comment, you install it and execute the commands correctly, the problem is that when you finish copying the files, the CMD console remains open. Is there any command to close it automatically after making the copy?

jesuscruz
Автор

Hi Apoorv,
Cant, we do without WinSCP? I have a requirement where I need to create the 0-byte file and upload it to the Oracle Cloud.

here_we_are
Автор

Hello Apoorv, i have the same issue as JometVj described, the Bat executable files works perfect, but the aut task scheduler doesn't transfer the file. please can you assist on this?

BrantinNoronha
Автор

How can i reverse this
As i need to copy the file from server to local using winscp on daily basis

swapnillondhe
Автор

Can you please provide me a winscp command which we can add in batch file to ftp files to another server

vijiv
Автор

Great video, would love to see more!! I think that it could be of use to research a service such as P r o m o s m!

mariohood