In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
When we synchronize files on Linux, we usually choose synchronization tools such as rsync. CwRsync is a rsync synchronization tool suitable for Windows platform. Its biggest feature is that it has the same configuration as Rsync on Linux, and you can use rsync commands to synchronize files on different hosts.
This blog post records the use of cwRsync to synchronize files on a Windows server to Linux.
Windows install cwRsyncServer
You can download the free version of cwRsync: https://www.itefix.net/free officially.
Version 4.1 is used here:
CwRsyncServer v4.1.0: http://pan.baidu.com/s/1eQpaIVw
CwRsync v4.1.0: http://pan.baidu.com/s/1pJ3B1FX
After the download is complete, extract the file and install it. Here, use the Windows server as the server side, install cwRsyncServer, and modify the configuration file rsyncd.conf after the installation is complete (default location: C:\ Program Files\ ICW\)
Profile Information:
Use chroot = falsestrict modes = falsehosts allow = * # * means all hosts are allowed to access. For security, you can set host IPlog file = rsyncd.logport = 873uid = 0 gid = "Module definitions# Remember cygwin naming conventions: C:\ work becomes / cygwin/c/work# [svndata] # to specify the authenticated module, and path = / cygdrive/h/svn # to specify the file directory to be synchronized in the same configuration as rsync. This means the H:/svn directory, which needs to be added / cygdriveread only = falsetransfer logging = nohosts allow = 192.168.1.204 # only 192.168.1.204 connections are allowed, and the other host auth users = rsync # authorized user secrets file = / cygdrive/h/rsyncd.secrets # password file path
Create a rsyncd.secrets file in the root directory of H disk and fill in the following account password information:
Rsync:rsync
Run services.msc on the Server machine, select Service "RsyncServer" to configure the startup type to "automatic", and then start the service.
Linux server configuration rsync
Configure the rsync client on the Linux server.
Yum install rsync-yecho "rsync" > / etc/rsyncd.secretschmod 600 / etc/rsyncd.secrets
Write a script file to synchronize the files on Windows to your local location:
#! / bin/bash#backup 192.168.1.205 svn file to loalhost.rsync-vazrtopqg-- delete-- password-file=/etc/rsyncd.secrets rsync@192.168.1.205::svndata / SVN-BAK/
Write to the native timing task:
0 2 * / bin/bash / scripts/svn-bak.sh & > / dev/null
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.