服务器文件和本地文件的自动同步 [英] Automated Synchronisation of server files and local files

查看:58
本文介绍了服务器文件和本地文件的自动同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何应用程序可以自动更新服务器文件和本地文件?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.

这篇关于服务器文件和本地文件的自动同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆