Topic "Mirror FTP server with Main Folder"

Author Message
shingo00
[View user's profile]

Joined: 2014-02-09
Posts: 4
Location: Malaysia
Good day,

I have created this script.
And it works well.
option batch on
option confirm off
option reconnecttime 30
open ftp://ga:abc@192.168.0.3:21
lcd "C:\Global"
put *
But the result is not as I wanted.

The main usage of this is to put "Global" folder into FTP server.
Can I know how what I need to change in order to Mirror FTP folder to "Global" folder?
Meaning if abc.txt is deleted from "Global" folder, FTP folder is also deleted.

Thank you in advance.

Regards,
Gary
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
You are looking for synchronization.
Use synchronize remote -delete command:
https://winscp.net/eng/docs/scriptcommand_synchronize
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License