Author: Zhang Hua published in: 2015-12-28Copyright NOTICE: You can reprint, reprint, please be sure to hyperlink form to indicate the original source and author information and this copyright notice
(http://blog.csdn.net/quqi99)
It is urgent to use rsync to sync photos on multiple machines at home.
sudo apt-get install rsyncsudo update-rc.d-f rsync removesudo update-rc.d
How to back up data using rsync in Linux
For various organizations and companies, data is the most important to them. Even for e-commerce, data is equally important. Rsync is a tool/software that backs up important data through the network. It is also a network protocol for synchronizing folders and files between systems through the network on Unix-like and Window systems.
Problem:
Rsync error: pinned ed SIGINT, sigterm, or sighup (Code 20) at rsync. C (503) [Cycler = 3.0.0pre7]-----------------------------Solution:Try adding the following line into "/etc/make. conf"
Code:
Portage_rsync_initial_timeout = 500
For details, see this post:Http://forums.gentoo.org/viewtopic-t-622757-start-0-postdays-0-postorder-asc-highlight-emerge+syn
Rsync is a file synchronization and transmission tool in Unix systems. Rsync uses the "rsync algorithm" to quickly synchronize files between a client and a remote file server. Some features of rsync javasdersync includes the following features: * can update whole directory trees and filesystems can update the entire di
Linux Remote Data Synchronization tool rsync (1)Rsync remote Data Synchronization tool is a data backup tool rsync in linux (remote sync remote synchronization) features: local data synchronization (similar to cp, but different from remote scp ), it first checks whether the existing data is different from the remote data, and overwrites the different data in
The configuration environment for rsyncSoftware platform: windows2003Software version: Cwrsync_2.0.10_installer Cwrsync_server_2.0.10_installerHardware platform: dell2950 cpu1.6g*4 Memory: 4G hard drive: 1g*6 RAID5 = = = Install = = = Install rsync in Windows environment to install server and client Server-side installation: Running Cwrsync_server_2.0.10_installerClient Installation: Running Cwrsync _2.0.10_installe The installation steps are the same
After configuring the rsync server, you can issue the rsync command from the client to implement various synchronization operations. Rsync has many functional options. The following describes common options: the Command Format of rsync can be: 1. rsync [OPTION]... SRC [SRC].
Article Title: Build Secure rsync. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
As security requirements increase, sftp or scp is gradually adopted to replace ftp. However, scp/sftp may be interrupted due to network conditions. Therefore, it is not only troublesome but also a waste of bandwidth and time to copy
the machine and use Linux as the serverServer --- 192.168.0.132 (Linux)Client --- 192.168.0.202 (Windows) 2. install and configure rsync for Linux Hosts(1) Check whether Rsync is installed on Linux:# Rpm-Qa | grep rsyncIf not, install the SDK or use tar to compile and install the SDK.# Rpm-IVH rsync-2.6.8-3.1.rpm (2) Open the
information-S, -- sparse performs special processing on sparse files to save DST space-n, -- dry-run which files will be transmitted-W, -- whole-file to copy files without incremental detection-x, -- one-file-system: do not span the file system boundary-B. -- block-size = SIZE indicates the block size used by the algorithm. the default value is 700 bytes. -e, -- rsh = COMMAND specifies the rsh and ssh data synchronization methods --
Backup@192.168.18.200::www1/backup/www1–password-file=/etc/rsyncd.passwordchmod u+x/opt/rsyncd.shCrontab-e0 5 * * * sh/opt/rsyncd.sh# sync once every 5 hoursThe following are supplementary:Installation system: Redhat Linux as 4 2.6.9Rsync is a data mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Its characteristics are as follows:Can be mirrored to save the entire directory tree and file system.It is easy to maintain the original file p
After the rsync server configuration is complete, the next step is to issue the rsync command on the client to back up the files on the server to the client. Rsync is a very powerful tool, and its commands have many special options. The following describes the options one by one.
The Command Format of Rsync can be as f
, by modifying the/data content on the Mater side, you can view slave/data directory contentIn addition, the Rsync service can be transferred using the SSH channelSSH-free authenticationServer-side command: ssh-keygen-t RSASCP. ssh/id_rsa.pub [Email protected]:~.ssh/id_rsa.p
Copy files from the remote rsync server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.Copy files from the local machine to the remote rsync server. This mode is started when the DST path information contains the "::" delimiter.The main contents of the configuration file are as follows:UID = Rootgid = Rootport = 873max Connections = 200timeout = 600pid F
Rsync installed by default
Remote 192.168.1.123
Local 192.168.1.124
Rsync + SSH
Run
Rsync-Az [email protected]:/root/bak # directory
Rsync-Az [email protected]:/root // Bak # contents in the directory
Or
On the remote host
Rsync
the default display is an empty string;%T: Use the custom time format in the--TIMEFMT option;For example, to monitor the Create,delete,modify,close_write events that occur on the/tmp/test directory and all of its internal files, use the following command:# inotify-r--timefmt '%d/%m/%y%h:%m '--format '%T%w%f '-e create,delete,modify,close_write/tmp/testThis command exits after monitoring the first event on a file, and if you want to monitor it all the time, you need to add the-m option to the co
(1) rsync (remote synchronize) is a data synchronization tool that allows you to quickly sync files between multiple hosts via Lan/wan, or use rsync to synchronize different directories on your local hard drive. (2) Rsync is a tool for replacing RCP, and rsync uses the so-called "
Rsync (synchronize) is a remote data synchronization tool that allows you to quickly synchronize files between multiple hosts by Lan/wan. Rsync uses the so-called "rsync algorithm" to synchronize files between local and remote two hosts, and this algorithm transmits only a different portion of two files, rather than sending it all at a time, so it's very fast.Rsy
yanruitao192.168.1.101
# Write the public key of the 100 machine just transferred to the. ssh/authorized_keys file cat id_rsa.pub>. ssh/authorized_keyschmod 700 ~ /. Sshchmod 600 ~ /. Ssh/authorized_keys # the trust relationship between 192.168.1.100 on the yanruitao@192.168.1.101 has been established so farSet crontab
0 */2 *
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.