将本地文件与服务器文件同步 [英] sync local files with server files

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

问题描述

场景:我要开发一个应用程序.该应用程序应该能够连接到我的远程服务器并将数据下载到本地磁盘,而在下载该应用程序时应该检查新文件并且仅下载该文件.新文件夹同时创建所需的(新)文件夹.

问题:我不知道如何将服务器中的文件与本地磁盘中的文件进行比较.如何仅将服务器中的新文件下载到本地磁盘中?

在想什么?:我想将本地计算机中的文件与服务器中的文件同步.我打算使用rsync进行同步,但是我不知道如何在ASP.NET中使用它.

请让我知道我的方法是否错误,或者是否有其他更好的方法来完成此操作.

Scenario: I want to develop an application.The application should be able to connect to my remote server and download data to the local disk , while downloading it should check for new files and only download the new ones simultaneously creating the required(new) folders.

Problem: I have no idea how to compare the files in the server with the ones in the local disk.How to download only the new files from the server to the local disk?

What am thinking?: I want to sync the files in the local machine with the ones in the server. I am planning to use rsync for syncing but i have no idea how to use it with ASP.NET.

Kindly let me know if my approach is wrong or is there any other better way to accomplish this.

推荐答案

看看Microsoft Sync Framework [
Have a look at the Microsoft Sync Framework[^]. Perhaps it would satisfy your criteria.


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

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