Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source,
Set up rsync Data Synchronization backup and rsync Data Synchronization for Small and Medium-sized Clusters
Important NFS Problems
1. NFS client users write NFS.
1) Why do ordinary users need to write NFS.
2) Add all_squash to exports.What is Rsync?
Rsync is an open-source,
Rsync is a data image backup tool in Linux. It can be seen from the software name-remotesync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD.
I. rsync
CommandIntroduction
Rsync is a command for Synchronizing files to a Linux system. It can synchroni
to start the RSYNCD server on the a server:Rsync--daemonExample of a customer command/USR/LOCAL/BIN/RSYNC-VZRTOPG--delete--exclude "logs/"--exclude "conf/ssl.*/"--progress [email protected]::www/ backup/www/--password-file=/etc/rsync.passAbove this command line in the-VZRTOPG V is verbose,z is compressed, R is Recursive,topg is to keep the original properties of
Brief introduction
For the choice of Linux as an application platform for small and medium-sized enterprises or Web sites, often face how to achieve remote Data backup or Web site mirror image of the problem, although there are commercial backup and mirror products to choose from, but these products are often too expensive prices. So how to use free software to efficiently implement remote
Rsync server to receive file transfer requests, so the client can either send the file to the daemon, or request the file to the daemon process. Rsync's server model is ideal for use in offsite central backup servers or data offsite repositories.Enterprise case: Building a remote disaster recovery backup systemIn order to ensure data security, the need to establ
Use reverse CT for rsync for server synchronous backup and rsync server configuration
Use reverse CT to remove the delivery process to Achieve Synchronous server backup
First, install keep CT
Check whether audit CT is installed
Rpm-qa | grep tcl
Tclx-8.4.0-5.fc6
Tcl-8.4.13-4.el5
Second, install keep CT
:
Http://dl.osch
I just got in touch with the rsync synchronization Backup Server File software. I am looking for an rsync parameter description today. I will introduce these parameters to you. I hope they will help you.
Rsync Installation
The latest version of rsync is 3.0.9.
Wget http://rs
For system administrators, the focus of their work should be on maintaining the normal operation of the system and providing services normally. A data backup problem is often involved here, as I know, 80% of system administrators do not care too much about the security of their servers. However, they are often quite interested in the backup image technology, however, because the software and hardware prices
As far as I know, 80% of the system administrators are not too concerned about the security of their servers, but they tend to be quite interested in the technology of standby mirroring, but because commercial products are expensive in hardware and software, they tend to choose free software. This is the kind of software that is being introduced here to meet the most demanding backup requirements that are not particularly high.
I. Introduction to the
Backup is an essential part of writing code, traditional backup, usually copy all the data to a place, and then labeled to indicate when the backup, this backup is called "Overall backup."
If you make a general backup, the disk sp
.
RSYNC-VZRTOPG--progress--delete--password-file=/etc/rsyncd.secretes root@118.244.216.177::logs/data/lnmp
Note: The above command means to sync the files under this path (/USR/LOCAL/LNMP) of the server to the client's path (/DATA/LNMP).
To reverse, synchronize the client's files to the server, as follows:RSYNC-VZRTOPG--progress--delete--password-file=/etc/rsyncd.secretes/data/lnmp root@118.244.216.177::logs
3.
Server Information)
Server configuration file (/etc/rsyncd. conf). This file does not exist by default. Please create it.
The procedure is as follows:
# Touch/etc/rsyncd. conf # create rsyncd. conf, which is the configuration file of the rsync server.# Touch/etc/rsyncd. secrets # create rsyncd. secrets, which is the user password file.# Chmod 600/etc/rsyncd. secrets # Set the File Attribute of the rsyncd. secrets password file to root and set the p
want to place the stock preparation file 』.
A: Keep all attributes of the file.
V: information displayed during execution
Z: compressed files during Synchronization
P: displays the execution process.
The last line is disgusting. In fact, it is the rsync command plus parameters. The usage is
Rsync [parameter] remote user @ remote machine: remote path local path
P
The password file format is simple, and the Rsyncd.secrets content format is:
User name: Password
What we rsyncd.secrets in the example is similar to the following: In the document, some systems do not support long passwords and try to set them.
Easylife:keerRoot:mike
Chown Root.root rsyncd.secrets #修改属主chmod rsyncd.secrets #修改权限
Note: 1, will rsyncd.secrets this password file file attribute to root owned, and permissions to set to 600, otherwise can not
simple, and the Rsyncd.secrets content format is:
User name: Password
What we rsyncd.secrets in the example is similar to the following: In the document, some systems do not support long passwords and try to set them.
Easylife:keerRoot:mike
Chown Root.root rsyncd.secrets #修改属主chmod rsyncd.secrets #修改权限
Note: 1, will rsyncd.secrets this password file file attribute to root owned, and permissions to set to 600, otherwise can not backup success! For sec
as follows:[Root @ www/etc] # Cat/etc/rsyncd. scrtMsyn: XXXXXXXXXIn addition, this file can only be read and written by the root user. Note that for security purposes, the attribute of this file must only be readable by the owner; otherwise, rsync will refuse to run. We can set its property to 600:[Root @ www/etc] # chmod 600/etc/rsyncd. scrtAfter these files are configured, you need to start the rsyncd service on the master server:[Root @ www/etc] #
@ www/etc] # cat/etc/rsyncd. scrtMsyn: xxxxxxxxxIn addition, this file can only be read and written by the root user. Note that for security purposes, the attribute of this file must only be readable by the owner; otherwise, rsync will refuse to run. We can set its property to 600:[Root @ www/etc] # chmod 600/etc/rsyncd. scrtAfter these files are configured, you need to start the rsyncd service on the master server:[Root @ www/etc] #/usr/local/bin/
Determines whether the file is time-stamped with the time Stamp window, which defaults to 0. -T--temp-dir=DIRCreate a temporary file in Dir. --compare-dest=DIRalso compare the files in dir to determine if a backup is required. -P is equivalent to--partial. --progress shows the backup process. -Z,--compress The files that are backed up are compressed at the time
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.