服务器文件和本地文件的自动同步

问题描述:

是否有任何应用程序可以自动更新服务器文件和本地文件?WinSCP 执行本地到服务器更新和单向更新.有双向申请吗?

Is there any application that does a automated update of the server file and local file? WinSCP does the local to server update and uni directional. Is there any bidirectional application?

Winscp 是双向的.我目前使用这个程序将文档目录自动化到 100 多台计算机.包含在此页面上找到的命令的简单批处理文件:

Winscp is bi direcional. I currently use this program to automate a directory of documents to 100+ computers. A simple batch file containing the commands found on this page:

http://winscp.net/eng/docs/scriptcommand_synchronize

下面是我用来完成从 ftp 服务器到本地目录同步的批处理文件,删除本地端的任何更改.批处理文件还保存了所有传输的 XML 日志.

Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.

@echo off
cd %programfiles(x86)%\winscp\
start /b winscp.exe /log="C:\Sync\logs\!M-!D-!Y@!T.xml" /xmlgroups /command "open   ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size     ""C:\Users\jdoe\Documents\Synced Docs"" / 

您要使用的参数是同步本地 -delete -criteria=size"

我已经使用它大约一年了,效果很好.如果您有任何问题,请告诉我.

I have had this in place for about a year and it works great. Let me know if you have any questions.