You can first use Rpm-qa |grep rsync to see if rsync is installedLet's talk about the Rsyns configuration process.I. Configuring the server SideFirst edit the/etc/rsyncd.conf content as follows:uid = nobody #进行备份的用户nobody为任何用户gid = nobody #进行备份的组 nobody为任何组use chroot = no #不使用chrootmax connections = 10 #最大连接数log file = /var/log/rsyncd.log #日志文件[rsyncd] # 这里是认证的模块名path = /home/test/ #参与同步的目录ignore errors # 可
If you perform the rsync command manually at the command line, the data is synchronized correctly, but the permissions fail in the Crontab timer task.In this case, you can specify the same parameters as the SSH Secure tunnel mode in the RYSNC command to specify the authentication key file that can be used to log on to the other machine with password-free access.1, create a new keySSH-KEYGEN-T RSA2, add the key to the other host trust, the implementati
/rsync directory ourselves and change the permissions to 777, so that it is easy to operate)vi /etc/rsyncd.confAnother line paste the content we copied, and then save the exitA machine start-up servicersync --daemonSee if it startsps aux |grep rsyncPre-prep work is done and you can start synchronizing filesCopy files from the local machine to the remote rsync server. The mode is started when the DST path in
local directory and the 666.txt file is deleted.////////////////////////////////////////////////////////////////////////////////////////////////Synchronization does not overwrite local modifications. -U1. Modify local file 11.txt2. Sync data, show sync 11.txt3. View Local 11.txt4. Modify the local file 11.txt again5. Add-u to synchronize data.6. View local files, is the status of the modification.7. View the source files.//////////////////////////////////////////////////////////////////////////
There are two ways to mainstream file synchronization under Linux, one is SCP (based on local, SSH), and the other is rsync (multiple ways local, SSH, RSYNCD)SCP Execution Command formatSCP [OPTIONS] Source destinationExample (local to remote, vice versa remote to local)scp/home/daisy/full.tar.gz [Email Protected]:/home/rootCopy directory plus parameter-r-V parameter to provide detailed information about th
The usual Delete command RM-FR * is not useful, because the time to wait is too long. So we have to take some very good measures.We can use rsync to quickly delete large numbers of files. 1. Install rsync First:
yum install rsync
2. Create an empty folder:
mkdir /tmp/test
3. Delete the target directory with
In some server architectures, you will experience file synchronization issues, such as a site mirroring backup, synchronization of files to multiple CDN nodes, and so on. There are two main issues that need to be addressed
1. How to implement file synchronization problem? 2. When do I perform a sync operation?
File synchronization can be used Rsync+ssh, when to synchronize their own operation? Maybe some people would think of Cron, this is true, can
create the backup folder in the VPS home directory.
☆☆☆ II, rsync incremental backup ☆☆☆
Rsync incremental backup, requires 2 VPS, let them do data synchronization between. For example, our site in VPS A, then a is the server side, with another VPS B to do an incremental backup, then B is the client.
This is just a simple b for a backup, A and B are the same
Article Title: Inotify + Rsync achieves real-time synchronization of linux Files. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source, and other basic classification, the company uses a set of systems to synchroniz
, files are moved into the monitored directoryIn_create, create a new file or subdirectory in the monitored directoryIn_delete, file or directory is deletedIn_delete_self, self-deletion, that is, an executable file deletes itself when executedIn_move_self, self-moving, that is, an executable file moves itself at execution timeTest creationTest Deletetest off - writetest shutdown - when writing, creation can also monitorSimplified outputSometimes the restart will fail , so put it in the rc.local.
Yesterday encountered the need to delete a large amount of files under Linux, you need to delete hundreds of thousands of files. This is a log of the previous program, growing fast and useless. This time, we often use the delete command RM-FR * is not useful, because the time to wait too long. So we have to take some very good measures. We can use rsync to quickly delete large numbers of files.1. Install
Feature Description:The script is used to transfer the local directory to the remote server on a regular basis (in conjunction with crontab), with each execution generating a time-named directory, and the current version of the data is linked to a symbolic link with the first name, so it is easy to find and recover. Before the data transfer is complete, it is transferred to the TEMP directory, which is named "Time-incomplete". Backups older than 10 days will be deleted and log files older than 1
INOTIFY+RSYNC+MUTT+MSMTP implement Linux file or directory Automatic Update and implement email to admin
Implement real-time synchronization of files and monitor directory to send mail to admin
requirements, need to update multiple servers, manual, long time.
and real-time monitoring to send mail to the administrator's mailbox.
Server architecture Diagram
Update Source ip:192.168.0.110
Server ip:192
Tags: BSP log col port spl inf Linux Linu datetimeThe rsync cause of Linux operations Automation scriptsBecause you want to do the synchronization log script, considering that the machine is more, the back also to expand.Recently I was learning python (a comparative dish).IdeasComposition: Configuration file + Execute scriptAfter the script executes, it reads the
/rsyncd.secrets5syslog facility = local5pid file = /var/run/rsyncd.pid900ignore nonreadable = yesdont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2[www] read only = no path = /var/www/html comment = WWW pages auth users = nobodyConfiguration instructions, a WWW module, specifically used as a htmlweb server.So the configured permissions are nobody, and the user is also nobody.Chown Nobody:nobody/var/www/html-rDisable Selinux,vi/etc/selinux/configModify Selin
or configure it yourself. However, I have verified that the file cannot be successfully configured with cwRsync, so we recommend that you manually configure it.
In fact, the configuration is to add the path of cwRsync to the environment variable of the system.
The manual configuration is as follows:
We can see that the rsync client cwRsync has been installed.
Note: The rsync client configuration in
Every year, Linux journalists and enthusiasts will openly discuss whether the next year will be the "Linux desktop" year. Although it is easier than ever to buy a new machine that is already running Linux or migrate existing Windows systems to Linux, simply installing and bo
"/>Password files can be synchronized at any time to specify the password file location is goodTo set the password file permissionsC:\users\administrator>d:d:\>cd/icw/bin/d:\icw\bin>chmod.exe-c 600/cygdrive/d/icw/rsyncd.passmode of '/ Cygdrive/d/icw/rsyncd.pass ' changed to 0600 (rw-------) D:\icw\bin>chown.exe administrator/cygdrive/d/icw/ Rsyncd.passenvironment variable Settings Computer Properties -- Advanced system settings -- environment variables-- system Variables ----Path--and end ad
/wKiom1PqwwqjwL5UAAGHxtWrLj0021.jpg "title=" Qq20140813094309.png "alt=" Wkiom1pqwwqjwl5uaaghxtwrlj0021.jpg "/>Under cmd Enter your Windows native address and Rsync's listening port, its default listening port is 873, enter:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/45/BE/wKiom1Pqw6mz5CecAABvqKczt0k209.jpg "title=" Qq20140813094525.png "alt=" wkiom1pqw6mz5cecaabvqkczt0k209.jpg "/>650" this.width=650; "src=" http://s3.51cto.com /wyfs02/
A complete Click-by-click, step-by-step video of this article are available here.OR ... You can read the article, Line-by-line.It all starts with a Linux Server running in the Windows Azure cloud ...Onto This "ll install a Remote Desktop Protocol (RDP) server called XRDP.But to get this server software installed, you need to configure the Linux server. You'll use
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.