In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to understand the Fedora rsync backup mirror tool, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
After a long time of learning rsync, so share with you, you may encounter Fedora rsync problems, read this article you must have a lot of gains, here will introduce the solutions to Fedora rsync problems, I hope this article can teach you more. Fedora rsync is an open source tool that provides fast incremental file transfer. It is released based on GNU General Public License and is mainly maintained by Wayne Davison (http://opencoder.net/) at present.
Through the features it provides, Fedora rsync is an ideal tool for backup or mirroring.
On May 8, 2009, Fedora rsync version 3.0.6 was released. The configuration and experiments in this paper are based on this version, and the system environment is Fedora 10.
Fedora rsync introduction
Fedora rsync is a file transfer program for Unix systems that provides a fast way to synchronize remote files by using the Fedora rsync algorithm. As the name implies, Fedora rsync is remote sync. In the process of passing, only the files that have changed are sent, not all the contents.
His characteristics are as follows:
1. You can update the entire directory tree and file system
2. You can keep the soft link, hard link, permission information, owner information, device and time information of the file.
3. No special permission is required for installation
4. The internal pipeline improves the speed of multi-file transfer.
5. You can use ssh, rsh or socket links for transmission
6. Anonymous transmission is supported
Fedora rsync installation
Fedora rsync is installed through Fedora's yum source, and yum install Fedora rsync.i386 can be installed.
How Fedora rsync works
When synchronizing data between two computers, you must set up one of them to install "Fedora rsync server" (Fedora rsync must run as daemon, for daemon, please refer to the following materials), and configure / etc/Fedora rsyncd.conf at the same time.
Once we have a Fedora rsync server, we can synchronize data to multiple other machines to establish a backup or mirror of the data. Due to the use of the "synchronization algorithm" and file comparison compression mechanism, Fedora rsync is very efficient.
You can't use Fedora rsync without ssh (if you're not familiar with ssh, you can refer to the link in Resources).
Server configuration
By configuring a Fedora rsync server, we can synchronize his files back, and if the Fedora rsync service is configured on both machines, we can synchronize in both directions. There are two ways to run Fedora rsync as daemon, one is through inet daemon, the other is running separately.
It is recommended that you use a stand-alone method to periodically synchronize files through a cron, which should be much more visited than through inet.
The configuration file for Fedora rsync is stored in / etc/Fedora rsyncd.conf, and here is an example:
Motd file = / etc/ rsyncd.motd
Log file = / var/log/ rsyncd.log
Pid file = / var/run/ rsyncd.pid
Lock file = / var/run/ rsync.lock
[simple_path_name]
Path = / Fedora rsync_files_here
Comment = My Very Own rsync Server
Uid = nobody
Gid = nobody
Read only = no
List = yes
Auth users = username
Secrets file = / etc/ rsyncd.scrt
Let's introduce the configuration file below. The * line is message of the day (motd), and the contents of the file will be displayed when the user connects. The second file is obviously a log file, which records the log of program execution.
The PID file contains the process ID (Process ID) that the program executes. The Lock file is used to ensure that Fedora rsync daemon is functioning properly. The options written here are global, that is, they are valid for all Fedora rsync directories.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.