In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how Rsync is used under the Windows system. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Rsync is easy and convenient to use, and if used properly, it can also enhance operational security. In addition, it can be used as a security Detection Tools to complete file system integrity audits without the support of any other software.
Rsync uses *** steps: create an rsync directory in d: , extract the contents of the 2 compressed files into this directory, and then enter the rsync directory
Rsync uses Step 2: Copy the cygwin support library to the system Copy 2 DLL libraries to c:\windows\system32 (XP system)
Rsync uses Step 3: Register a service called Rsync (start the service using anysrv)
d:\rsync> instsrv Rsync "d:\rsync\srvany.exe"
Rsync uses Step 4: Modify the information about the Rsync service in the registry so that srvany can call rsync.exe with certain parameters to start the rsync service.
1. Edit the rsync-param.reg file and change all the paths in it to d:\rsync like this:
"AppDirectory"="\"D:\\rsync\""
"Application"="\"D:\\rsync\\rsync.exe\""
"AppParameters"="--config=\"D:\\rsync\\rsyncd.conf\" --daemon --no-detach"
2. Dual rsync-param.reg file, modify registry
Rsync uses Step 5: Configure the corresponding service configuration file Add an rsyncd.conf file to d:\rsync, which reads as follows:
use chroot = false
strict modes = false
hosts allow = *
log file = c:/rsyncd.log
[BackupArea]
path = d:/backup
read only = no
Step 6: Start the Rsync service and enter the system service management. You will find that there is an Rsync service. First, check the service attributes.
Properties-> Login Modify and confirm as "Local System Account"
Then start the Rsync service
Check port 873 to see if netstat -an is enabled
Using Rsync Step 7: Testing rsync synchronization
1. Create a test directory. The source directory is d:\source. The backup directory is d:\backup. Keep the backup empty. Copy some files into the source.
2. Go to a cmd window and go to the d:\rsync directory and execute:
rsync -rv --delete /cygdrive/d/source localhost::BackupArea
3. Check the backup file to see the synchronization effect
4. Modify or add/delete a file in source, then execute the command in 2 again, and then see the synchronization effect in backup
Thank you for reading this article carefully. I hope that the article "How to use Rsync under Windows system" shared by Xiaobian will help everyone. At the same time, I hope everyone will support you more, pay attention to the industry information channel, and more relevant knowledge is waiting for you to learn!
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.