cwRsync如何在windows server系统中实现文件定时同步(备份)
来源:昵称汇 本文已影响2.37W人
来源:昵称汇 本文已影响2.37W人
咋电脑里面,有些时候软件是不能同步的,需要使用其它的软件来进行搭桥,那么cwRsync如何在windows server系统中实现文件定时同步(备份)?文中为大家介绍相关详情。
cwRsync在windows server系统中实现文件定时同步(备份)教程
cwRsync是rsync的windows版本,可以实现win系统中同步以及windows到Linux中的同步备份,需要在主服务器端安装服务版本,以及在备份服务器上安装客户端版本,在本地机器上安装了其中的服务器端(),然后在同网段下的另一台机器()安装了客户端。为了测试,我专门在本地机器上的f盘上放置了我们的产品dnt的站点文件,同时准备将该站点文件夹下的aspx和config文件夹作为要进行同步文件的文件夹。然后在其服务端的ig文件下,输入如下内容:
use chroot = false
strict modes = false
hosts allow = *
log file =
pid file =
port = 52326
max connections = 4
# Module definitions
# Remember cygwin naming conventions : c:work becomes /cygwin/c/work
#
[t_aspx]
path = /cygdrive/f/dnt_snap/aspx
read only = false
transfer logging = yes
lock file =
[t_config]
path = /cygdrive/f/dnt_snap/config
read only = false
transfer logging = yes
lock file =
注:在上面的内容中,将监听端口设置为52326。
这样,我们在控件面板-->管理工具-->服务,找到该服务并启动它,如下图:
这时我们就可以在客户端()的f盘上创建一个叫sync的文件夹,同时在下面创建两个分别叫"config”和“aspx”的文件夹来对应同步服务端的文件夹。
然后接着用下面的内容创建一个名为 dnt_的批处理文件:
rsync -av rsync://_config /cygdrive/f/sync/config
rsync -av rsync://_aspx /cygdrive/f/sync/aspx
并将其放到cwRsync客户端安装目录下的bin目录中(我的安装目录如下:C:Program FilescwRsyncbin),然后双击启动它。
这样,就开始同步文件了:
之后,我们可以到客户端f盘的相应目前中查看同步过来的文件,呵呵。
Rsync 客户端(cwRsync) 5.4.1 官方最新版:
cwRsync(Rsync for Windows)服务端&客户端:
当然cwRsync是采用增量和修改同步方式,如果你将服务器端的相应文件做了修改,则同步时只会同步修改过的文件或新增的文件
下面介绍一下如何通过windows中的“任务计划”来创建定时任务,执行定时同步。
首先在客户端的机器上的: 控件面板->任务计划->点击“添加任务计划”, 在相应的弹出窗口中点击下一步,然后点击导航窗口中的“浏览”按钮,如下,并从中选择之前创建的批处理文件”dnt_”:
这时系统会显示如下窗口提示当前计划任务执行方式,我这里选择每天执行(一次):
到这里,系统就会创建一个叫dnt_sync的任务计划,同时在接下来的窗口中提示任务的开始执行时间:
这里不做任何修改,直接点击下一步,接着是身份验证(通常是管理员身份),必定任务计划非同儿戏,要有足够的权限才可以玩的转:)
最后点击完成,就创建了一个任务计划。只不过它是按天执行的,如果我们希望其每分钟执行一次又该怎么办呢,其实很简单,只要在用鼠标点击新创建的任务计划,并在弹出菜单中选择“属性”,这时在弹出窗口的“日程安排”中点击“高级按钮”,如下:
这时就会弹出一个叫“高级计划选项”的子窗口,在其它做如下设置:
到这里,这个计划任务就会每天24小时,以每分钟运行一次的方式来同步之前的那两个文件夹了。
Why don't you come to confess? I've already decided how to promise you.
带翻译的最新英文签名 we accept the love we think we deserve
windows live messenger功能简介 即时沟通无极限
一句话英文说说唯美伤感 who will watch every sunrise with you
曦曦:Don't hang your sadness on your face, it will look very fruitless.
Buddha can not cross the world, I have to cross 佛渡不了的天下,有我来渡
超甜动漫情侣头像abcdefghijklmnopqrstuvwxyzwoyaxiwangtouxiangshangremen dannazenmkeneng
Close your worries, hang up the moon, and sleep well!
沈鹤书.“Happiness is the richest thing we will ever own. — Donald Duck”
windows live messenger新手上路 如何开始聊天
I've never envied anyone else when you were with me.
2014最新伤感英文签名带翻译 Crowded I always not see you
windows live alerts功能简介 让信息找到您 如何查找alerts
windows live Writer功能简介 随意撰写 轻松发布 如何发布博客
美丽个性非主流签名 Cry, already know what is love
Said not to disturb, but still can't help but wonder if you're doing well.(纯蓝色女头)
Be nice to yourself, That's the person who will be with you the longest.
Loser are always in the wrong. 胜者为王
做你最爱,温柔且甜,甜蜜且乖.Be your favorite, gentle and sweet, sweet and good.
Spring breeze and I are both passers-by, and you bring your autumn waters to embrace the Milky Way.
What a pity it would be if you said that you can get red eyes when you dream
ᵂʰʸ ᵈᵒⁿ'ᵗ ʷᵉ ˢᵗᵃʳᵗ ᵒᵛᵉʳ.
欧美风仙女头像 I am not bad now, I have a conscience, my conscience is you.
windows如何进行文件备份
win7 下面如何用电脑和 Windows Mobile 设备同步
windows系统如何备份系统
Good luck is when an opportunity comes along and you're prepared for it.
I just want to throw you in the desert and kill you. (by chengdu iron man)
win10系统如何备份系统
In spite of you and me and the whole silly world going to pieces around us, I love you.
pokemon go our servers are experiencing issues彻底解决方法
宛挽&大雾四起,我在无人处爱你。I love you where there is no one.
每个人都很特别你也不例外.Everyone is special,and you are no exception.
法式高级感头像 ᴳᵉⁿᵗˡᵉⁿᵉˢˢ ⁱˢ ᵗʰᵉ ᵗʳᵉᵃˢᵘʳᵉ ᵒᶠ ᵗʰᵉ ʷᵒʳˡᵈ.
很笨 所以好喜欢简单又真诚的人.Very stupid so good like simple and sincere people.
Who doesn't become stronger as they get hurt?谁不是一边受伤,一边学会坚强
wps备份在哪个文件夹
苏旬/merry christmas and happy new year贺新年
Thewindblowsawaythethoughts,rolledupunrulytime.(被风吹散的思念,卷起不羁的时间)
win10系统如何备份系统 系统备份的操作步骤
超拽有哲理的英文签名 Lose you win the world and how