同步Windows文件夹 [英] Synchronize windows folders

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

问题描述

我在eclipse中设置了远程同步,以在不同位置复制jsp和js文件。我观察到有时由于同步(我需要保持启用build auto选项)的原因,eclipse挂起了并且需要终止进程。在Windows中,我们有任何选项可以同步两个本地文件夹。我进行了搜索,但是我正在通过第三方软件进行选择。我正在使用我的办公室笔记本电脑,所以不想使用任何第三方软件,而是想检查Windows是否为此提供了任何简便的选择。

I have set up remote sync in my eclipse to copy jsp and js files at different locations. I am observing that sometimes because of this sync (I need to keep build auto option enabled) eclipse is hanging and I need to kill the process.In windows do we have any option to sync two local folders. I searched but options I am getting through third party software. I am using my office laptop, so don't want to use any third party software and want to check if windows provide any easy option for that.

我想念unix和rsync:(

I miss unix and rsync :(

目前我

xcopy / s / d / y源文件夹目标文件夹

xcopy /s /d /y source folder destination foler

推荐答案

幸运的是,Windows中有一个有用的小程序,名为 robocopy ,该程序随Win7和Windows 7一起提供。

Fortunately, there is a useful little program in Windows called robocopy that ships with Win7 and above.

https: //technet.microsoft.com/zh-CN/library/cc733145.aspx

robocopy <source> <destination> /mir /copyall

这是您可以用来将源目录复制到目标目录,包括所有子目录,文件和元数据。它是单向的,因此不会同时检查两种方式,但是可以在Windows启动任务中设置基于时间和基于更改的触发器,以便可以在进行文件夹同步时自动进行同步工作。

This is what you can use to copy a source directory to a target directory including all subdirectories, files, and metadata. It's uni-directional so won't check both ways, but there are time and change based triggers you can set with a windows startup task so you can make the folders auto-sync as you work.

如果您阅读链接,则会找到 / mot: / mon:标记将监视文件夹的更改/等待一定的时间,然后再次复制。

If you read the link, you'll find the /mot: and /mon: flags which will watch the folders for changes/wait a certain amount of time then copy again.

此外,它确实擅长记录输出,并且在使用时非常出色作为系统启动过程。

In addition, it is really good at logging output, and is excellent when used as a system startup process.

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

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