-tools:
Before installing inotify-tools, check whether your Linux kernel has reached 2.6.13 and the CONFIG_INOTIFY option is enabled during compilation. You can also run the following command to check whether the following output is displayed, note:
[root@localhost~]
#ls/proc/sys/fs/inotify/
max_queued_eventsmax_user_instancesmax_user_watches
Installation:
wgethttp:
//cloud
.github.com
/downloads/rvoicilas/inotify-tools/inotify-tools-3
.14.
tar
.gz
tar
xvfinotify-tools-3.14.
tar
.gz
cd
inotify-t
This article describes the style resolution for the new Progress progress bar label in HTML5, explaining how to change the color of the progress bar by HTML5 the progress tag. Let's take a look at this article next.
First, let's get to know the HTML5 Progress label Introduc
]# chmod 600/etc/rsyncd.secrets# VI/ETC/RSYNCD.MOTD
RSYNCD.MOTD records the welcome information for the Rsync service, where you can enter any textual information, such as:Welcome to use the rsync services!Start:
The code is as follows
Copy Code
#/usr/bin/rsync–daemonor #/usr/local/rsync
= "% a % f % l" # log format = "% o % h [% a] % m (% u) % f % l "[rsyncroot] comment = rsync root path =/use chroot = no max connections = 4 read only = true # read only = false list = true uid = root gid = root auth users = rootuser secrets file =/etc/rsyncd. secrets hosts allow = 1.1.1.1, 2.2.2.2 hosts deny = 0.0.0.0/0 ignore errors = yes transfer logging = yes log format = "% a % f % l" rsyncd. secrets has one user name in one row: use the Java co
-auzv -- Progress -- password-file =/etc/rsync. Pas root@192.168.133.128: backup/home/Rsync: cocould not open Password File "/etc/rsync. Pas": no such file or directory (2)Password:@ Error: AUTH failed on module backupRsync error: Error starting client-server protocol (Code 5) at main. C (1506) [runner ER = 3.0.7]This
must be set to only the owner-readable.
#/usr/local/rsync/bin/rsync-vzrtopg–progress–delete rsync_user@192.168.0.2::rsync_module_name1/tmp/
Password:
Or you can make password files.
Because of the need for system crontab execution, here is the way to read the password file,
This is the time to succeed.
#vi/etc/rsyncd.pas
Join
Rsync_user:rsyncofpass
Note that t
- - progress - - delete rsync://[email Protected] 211 55 11/test/ rsynctarget/ Where rsynctest is my sync username, 10.211.55.11 is the IP of my rsync server. Run the command and enter the password. If you do not want to enter the password every time, you can add parameters --password-file=/etc/rsyncd.secrets , wherein Rsyncd.secrets is your
drop it, or delete it, for example:
Zhouda#vi RSYNCD.MOTD
Write:
welcome!
===================== 3> start rsync service =======================
Zhouda#/usr/bin/rsync--daemon--config=/etc/rsyncd/rsyncd.conf
============ 4> master server is already configured rsync! Below we set the ============ from the serverJust install
Label: des style HTTP color Io OS ar sp
(1) download the rsync source code for Installation
(2) 1' CD rsync
2'./configure -- prefix =/usr/local/rsync
3 'make
4 'make install (permissions may be required, plus SUDO)
(3) rsync command synchronization Parameter options (learn more)Rs
and length--size-only when deciding whether to back up files, Just look at the file size, regardless of the file time--modify-window=num determines whether the file time is used concurrently with the timestamp window, by default 0-t--temp-dir=dir creates a temporary file in Dir--compare-dest=dir also compares files in DIR to determine whether a backup-p equivalent to--partial--progress displays the backup process-Z,--compress to compress the backed-u
Linux rsync incremental Sync method
You can first use Rpm-qa |grep rsync to see if rsync is installedLet's talk about the Rsyns configuration processI. Configuring server-sideFirst edit the/etc/rsyncd.conf content as follows:UID = Nobody #进行备份的用户 nobody for any userGID = Nobody #进行备份的组 nobody for any groupUse chroot = no #不使用chrootMax connections = #最大连接数Log file
information -- address bound to a specific address -- config = FILE specify other configuration files, do not use the default rsyncd. conf file -- port = PORT specify other rsync service ports -- blocking-io for remote shell use blocking IO-stats to give the transmission status of some files -- progress actual transmission process -- log -format = formAT specify the log file format -- password-FILE = FILE
RSYNC software introduction: rsync is a data image backup tool in unix-like systems. It can be seen from the software name-remote sync.
I. Use rsync to start rsyncserverTwo Methods for RSYNC server startup1. Start the rsync server to start independently)#/Usr/bin/
1. Introduction of environment and related softwareOperating system: ubuntu12.04_x64Source Server (push): 192.168.18.10Target server (Backup): 192.168.18.20Rsync:Rsync is a data mirroring Backup tool under UNIX systems and is a fast incremental backup tool (remote sync) that supports local replication or synchronizes with other SSH (secure transfer) and rsync hosts.Rsync has the following common parameters:-v,--verbose Show details of the synchronizat
a client-side configuration file on another computer. The filename can be changed by itself.
Vi/home/sites/sites_rsyncd
#!/bin/bashRSYNC-TVZRP--progress--password-file=/home/sites/rsyncd.secrets--delete--exclude
/home/sites/compshop/logs compshop@192.168.168.241::compshop/home/sites/compshop/RSYNC-TVZRP--progress--password-file=/home/sites/rsyncd.secrets--delete
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 rsync vim/etc/xinetd. d/
Raspberry Pi-rsync and Raspberry Pi rsyncYou can use rsync to synchronize folders between different computers. You may want to transfer a file from your desktop computer or laptop to your Raspberry Pi and keep the file updated. Or, you want to automatically transfer the photos taken by Raspberry Pi to your computer.Using SSH-based rsync allows you to automaticall
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.