Rsync: a very practical file synchronization command, rsync is very practical
Sync is a file synchronization and data transmission tool in Linux. It can be used to synchronize files and release code.
1. install.
Yum install-y xinetdYum insatll-y rsync
2. ConfigurationEnable
First, the advantages and disadvantages of rsync
Compared with the traditional CP and tar backup methods, Rsync has the advantages of high security, fast backup, support incremental backup, etc., through rsync can solve the real-time requirements of the data backup, such as regular backup file server data to the remote server, the local disk regularly do data mi
/.rsync-filter'repeated:--filter='-. Rsync-filter'--exclude=pattern exclude files matching pattern--exclude-from=file read exclude patterns from FILE--include=pattern Don't exclude files matching PATTERN--include-from=file read include patterns from FILE--files-from=file Read List of source-filenames from FILE-0,--from0 all *-from/filter files is delimited by 0s-
What are the restrictions on rsync backup? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Environment: Install cwrsync_server_2.0.10_installer.zip in win2003
Linux AS4 U2 installation rsync-2.6.3-1
Objective: To back up win2003 data to Linux
Test backup data: 3 GB
Run the command: #
Configure Rsync first, as mentioned in the previous section.InotifyInstall and configure the inotify serviceBuild the inotify service on 8.8.8.1101. Download and install The code is as follows:Copy code Wget http://nchc.dl.sourceforge.net/project/inotify-tools/inotify-tools/3.13/inotify-tools-3.13.tar.gzTar xzvf inotify-tools-3.13.tar.gzCd inotify-tools-3.13./Configure -- prefix =/usr/local/inotifyMakeM
Rsync is an open source, fast and versatile tool that enables simultaneous, full-scale, incremental, local or remote data backup, and is one of the essential skills of operations personnel. What is the characteristic of rsync that
Based on the C/S architecture, client and server. The server starts the service, rsync, listening port 873, and the port can be customized,To edit the configuration file/etc/rsyncd. conf rsyncd. conf example Port = 873 # listening port, which can be customized. Restart the port after modification log file =/var/log/rsync. log # specify the log file PID file =/var/run/rsyncd. pid # specifies the PID fil
.
Flush tables with read lock;
6. Obtain the binary log name and offset
Show master status;
7. Package the primary database files
Tar-cvf data.tar data
8. Restore read/write operations on the master server
Unlock tables;
9. The package is sent to the slave server.
Rsync-ua d name @ ip: modname
10. Stop the slave server mysql
./Bin/mysqladmin-uroot-p shutdown
11. Extract files from the server
Tar-xvf data.ta
1. Enable rsync from the Database Server
Vi/etc/rsyncd. conf
Edit rsync Configuration
/Usr/bin/rsync -- daemon
Start rsync
2. Stop the crontab of the log Collection Server
/Etc/init. d/cron stop
3. Stop the primary database rsync
Ps aux | grep
Today there is a server A to transfer all the Web site program to another server B up, but away from work time is only 1 hours, in order to work on time, simply wrote a shell script to monitor whether there is transmission, I first in the server a looked at the total size of the program 12G, with Du- SM View is 11517,
The rsync configuration of a service in sogou is incorrect.
Incorrect rsync Configuration
1. Scan the sogou browser CIDR Block
Nmap 123.126.51.33/24-p873 -- open
2. Server ip addresses with port 873 Enabled
The following three ip addresses are tested to have rsync authorization.123.126.51.64123.126.51.61123.126.
In Windows, I use cwrsync as the rsync server. in Linux, I Synchronize files in windows to a Linux host. The following error occurs: "chdir *** failed
: Permission denied (13) "error. It is found that the account accessing the rsync server has no corresponding permissions. Therefore, the permission for rsync users on
A new node has not been synchronized from the primary server to the configuration file prompt:Rsync: Failed toConnect tox.x.x.x:NoRoute toHost
Suspicion is a firewall problem, shut down their own firewall, found or not connected
Doubt it's selinux, turn it off or not.
Shut down the firewall of the main server and find that you can
The master server firewall is found to have the correspo
See: http://www.realworldtech.com/forums/index.cfm? Action = detail postnum = 3322 Thread = 4 entryid = 49318 roomid = 11
Name: Linus Torvalds (torvalds@osdl.org) 4/13/05
I will not join a public debate (flame wars) provoked by an anonymous user ). But this time I will respond because rwt (http://ww.realworldtech.com) is not slash-dot.
In fact, in this case, I understand and respect both parties (the open source software developers who reverse en
This document tags: heap sort php php algorithm heap sorting algorithm two fork heap data structure /c12> REST server What is a heapHere the heap (binary heap), refers to not the stack of the heap, but a data structure.The heap can be regarded as a complete two-fork tree, and an "excellent" property of a complete binary tree is that each layer
Bit rate control is actually a coding optimization algorithm, which is used to control the video stream size.
So what is the purpose of its control? We can imagine that the same video encoding format, the code flow is large, it contains more information, then the correspondi
What is Flex? What is the relationship between flex and flash? What problems does flex solve? What is the relationship between flex and J2EE/. Net?
Flex
What is an IOC container? What is the use? What is facade? What's the use?
Reply to discussion (solution)
Ioc (inversion of control) Chinese translation inversionis the reverse mode of the Factory modeFacade (appearance) mod
1.. Net is a development platform, and. NET Framework is the basic class library of this development platform.
2. framwork is a class library, excluding development tools.
ASP. NET is an application. framwork contains the controls required to Develop ASP. NET applications.
What
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.