Configure inotify+rsync real-time synchronization

If you are not familiar with rsync services and commands, you can refer to the blog post. Remote synchronization through rsyncThere's not much to say here! Linux kernel has provided inotify notification interface since version 2.6.13 to monitor various changes of file system, such as file access, deletion, movement, modification, etc. Using th ...

Posted by skissiks on Thu, 15 Aug 2019 14:11:25 +0200

Actual combat: use xtrabackup to make incremental backups for mysql

Originality: Fat Dog and Flying Bird qq14808540 Production environment architecture: MySQL 5.6, one master and one slave. Periodic incremental backup is implemented on the slave side. The slave is configured as a 2-core 4G and hangs on the SSD data disk. Introduction to xtrabackup There are two tools: xtrabackup: is a tool for hot backup of dat ...

Posted by mounika on Sun, 30 Jun 2019 01:08:48 +0200

Chapter 2: Principle and workflow analysis of rsync algorithm

In this paper, the principle of rsync algorithm and the workflow of rsync are analyzed in detail through examples. rsync Official Technical Report and Official Recommendation Articles Explanation. Following is the rsync series: 1.rsync(1): Basic commands and usage 2.rsync(2): inotify+rsync and sersync 3.rsync algorithm principle and workflow an ...

Posted by crishna369 on Wed, 12 Jun 2019 00:07:32 +0200

Write Makefile for small projects

This article takes one of my small projects as an example to illustrate the basic writing of Makefile files for GNU Make.Since I haven't read the GNU Make documentation carefully and don't know about the POSIX-compliant Makefile format, I may not be writing a Makefile very seriously, so don't hesitate to ask someone who is good at it. My small ...

Posted by lingo5 on Thu, 30 May 2019 19:03:07 +0200

Common Manual Commands of [svc]linux - md Edition

Related code env configuration file /.bash_profile: User executes each login /.bashrc: Executed every time you enter a new Bash environment /.bash_logout: executed every time the user logs out Seymail Mail Configuration yum install sendmail -y cat >>/etc/mail.rc<<EOF set from=xxx@tt.com set smtp=smtp.exmail.qq.com se ...

Posted by php_jord on Mon, 27 May 2019 22:22:27 +0200

37:rsync Tools and Common Options

1. rsync: remove sync (remote synchronization), data backup tools, can achieve local synchronization and remote synchronization, synchronization can be incremental synchronization, only synchronize different data, that is, only synchronize two different parts of the file, so the speed is very fast: Five command formats for rsync: Note: src rep ...

Posted by TheBrandon on Sat, 18 May 2019 04:20:32 +0200