像复制的碳复制...或精确复制到和现有文件夹。 [英] Carbon copy like Sync... or exact copy to and existing folder.

查看:113
本文介绍了像复制的碳复制...或精确复制到和现有文件夹。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我们的服务器和本地桌面之间进行同步,即使本地副本已更改,我也要覆盖它。如果它不在服务器上,它应该从本地机器上删除。这是因为我们在用户计算机上有一个预先存在的文件夹,我们使用的其中一个应用程序获取其信息。但我们保留了一个中央存储库,让用户在我们进行更改时同步它。我现在遇到的问题是,由于文件已经存在,当我开始新的同步时,它不会删除本地机器上服务器上不存在的文件。现在我已经通过同步运行一次并且它使所有它的元数据显然删除了新的删除,但我想避免在我同步之前删除用户机器上的所有内容,因为它实际上是GB的数据。因此只同步需要同步的内容将是理想的。我的想法是不可能从我从框架中看到的,我将不得不对本地和远程目录进行手动重复扫描,并确定是否需要从本地路径中删除事物然后可能同步运行同步....

I would like to do a sync between our server and our local desktops where even if the local copy changed i want to overwrite it. and also if it's not on the server it should be deleted from the local machine. this is because we have a preexisting folder on the users machine that one of the applications we use gets its information. but we keep a central repository and have the users sync this when we've made changes. problem i'm running into at this time is that since the files already exist, when i start a new sync, it doesn't remove files on the local machine that don't exist on the server. now after i've run thru the sync once and it makes all it's metadata obviously new deletes are removed, but i want to avoid deleting everything from the users machine before i sync because it's literally GBs of data. so syncing only what needs to be synced would be ideal. my thought is it's not possible from what i see from the framework and i'm going to have to do a manual recusive scan of the local and remote directories and determine if things need to be removed from the local path and then run the sync possiblly....

推荐答案

嘿,

你能详细说明你的情景吗?您是否使用自己的自定义提供商?是否要在与本地计算机同步服务器后删除本地计算机上的预先存在的文件夹?如果需要,您如何获得此文件夹?您可能希望编写自己的提供程序,从服务器应用更改,检测并删除本地更改。

谢谢,
Hey,

Could you elaborate on your scenarios? Do you use your own custom provider or not? Do you want to delete the preexisting folder on the local machines after sync server with local machine? How do you get this folder back in the case you need? You might want to write your own provider which applies the changes from server, detects and deletes the local changes.

Thanks,


这篇关于像复制的碳复制...或精确复制到和现有文件夹。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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