no configuration is required.
Then, on Server B, create the following script:
#!/bin/bash
/usr/loca/rsync/bin/rsync-vazu-progress–delete
–password-file=/etc/rsync.secret terry@192.168.100.21:/terry//home
Save this script as atob.sh and add the executable properties:
# chmod 755/root/atob.sh
Then, with the crontab setting, the script runs every 30 minutes. To execute a command:
# CRONTAB-E
Enter the followi
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, fast, and versatile tool that supports full o
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, fast, and versatile tool that supports full o
rsync Simple
The role of rsync is like the general Linux CP and SCP directive, which can be copied from the source location to the destination location, however, rsync is more efficient than CP and SCP in a copy of the file, and supports both the connection and the devices, as well as the retention of the file's owner, group Group and permissions,
In the first c
Rsync + sersync for real-time file backup
Part 1: operate on the target server 192.168.0.2171. Install Rsync on the OA file backup server1. Disable SELINUXVi/etc/selinux/config # edit the firewall configuration fileThe Code is as follows:
# SELINUX = enforcing # comment out# SELINUXTYPE = targeted # comment outSELINUX = disabled # Add: Wq! # Save and exit
Setenforce 0 # effective immediately
2. Enable tcp p
)
# Rsync-vzrtopg -- progress -- password-file =/etc/rsync. pas/backup/web/rsync@10.0.0.10: backup
This command backs up all files (including subdirectories) in the local machine/web directory to the backup directory set by the backup module of rsync server (10.0.0.10.
Note that if the path ends with "/", it indicates
-vzrtopg -- progress -- delete hening@192.168.0.217: backup/home/backup -- password-file =/etc/rsync. pasUpload files to the SERVER/Usr/bin/rsync-vzrtopg -- progress -- password-file =/root/rsync. pas/home/backup hening@192.168.0.217: backupThis command backs up all files (including subdirectories) in the local machine/home/backup Directory to the backup director
synchronization Directory192.168.21.127, 192.168.21.128: # target server IP addressName = "home_www.bitsCN.com": # name of The rsync directory module on the target serverUsers = "home_www.bitsCN.com_user": # target server rsync user namePasswordfile = "/etc/passwd.txt": # the target server rsync synchronizes the user's password to the storage path of the source
/usr/local/apache/htdocs/pub/html/directory of the backup machine.
In this way, the rsync synchronization service has been set up. Finally, we can use the crontab command executed on the client to implement automatic backup or write some scripts, in this way, the rsync synchronization service is more perfect.
2. Configure the Windows Client
To use
--delete devilzy@192.168.152.154::html/home/html--PASSWORD-FILE=/ETC/RSYNCD.PW
Uploading files to the server side
/USR/BIN/RSYNC-VZRTOPG--progress--password-file=/root/rsyncd.pw/home/index Devilzy@192.168.152.154::index
/USR/BIN/RSYNC-VZRTOPG--progress--password-file=/root/rsyncd.pw/home/html devilzy@192.168.152.154::html
This command backs up all files (including subdirectories) in the local machine/home/b
the kill, execute Netstat–anp|grep 873 or lsof–i:873 again, the result is null:
10, Firewall settings:
If a firewall is installed on the server, set the iptables on the server to open the 837 port.
[Root@hyj ~]# iptables-a input-p tcp--dport 873-j ACCEPT
11. If the rsync process is not running, start rsync on the server side:
(1), Start rsync service side
create this directory. If it does not contain "/", it is created. Rsync usage: Rsync [Option]... [user @] HOST: SRC [DEST] # Back Up Files from rsync server to Local Machine Rsync [Option]... SRC [SRC]... [user @] HOST: DEST # Back Up Files from local machines to rsync serv
Rsync working mechanism (translation), rsync working mechanism Translation
This article is an official rsync recommendation article on How Rsync Works translation. The main content is Rsync terminology and a simple version of rsync
module;#例如: You do not need to synchronize the/home/www.osyunwei.com/directory under directory A and B directories under the B1 directory, exclude.list files can be written like thisA/b/b1/Rsyncuser=home_www.osyunwei.com_user #目标服务器rsync同步用户名Rsyncpassdir=/etc/passwd.txt #目标服务器rsync同步用户的密码在源服务器的存放路径dstip= "192.168.21.127 192.168.21.128" #目标服务器ip, multiple IPs separated by spaces/tmp/rsync.log #脚本运行日志记录6, se
Rsync random start script and rsync script
Server
1 #!/bin/sh 2 # chkconfig: 2345 21 60 3 # description: Saves and restores system entropy pool for \ 4 #create by xiaohu 5 #2014.06.02 6 #This script is the Rsync service script 7 . /etc/init.d/functions 8 case "$1" in 9 start)10 echo "rsync is starting"11
This article by show according to Lin Feng to provide friendship sponsorship, starting in the mud row world. Just have a few days to start learning Linux file synchronization software rsync, when learning rsync, we can be divided into the following several steps: 1. What is rsync? 2. How rsync Works 3.
Linux O M and architecture-rsync and linux-rsync
1. rsync IntroductionRsync is a tool for Synchronous backup of full and incremental local or remote data images
Common rsync Command Parameters
Command parameter description-a (-- archive) archive mode indicates that the file is transmitted recursively, and all file att
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.