Centos7 rsync+inotify realizes real-time synchronization updates

inotify slave deployment Download the specified file on the master to the local host specified directory yum install rsync –y [root@localhost ~]# useradd rsync -s /sbin/nologin -M [root@localhost ~]# mkdir -p /home/yxh/back [root@localhost ~]# chown rsync.rsync /home/yxh/back/ echo rsync_backup:yxh >>/etc/rsync.password rsync_backup is the user name yxh is the password [root@localhost ~]# chmod 600 /etc/rsync.password [root@localhost […]

NFS +inotify+rsync realizes remote mounting and real-time incremental backup of data

NFS Network File System Function: Users can use files on remote systems in the network just like accessing their own local file system Principle: User process–>RPC service (portman)–>tcp/ip protocol stack–>After remote host RPC service–>Remote NFS service–>Remote host local disk data–>NFS service –>tcp/ip protocol stack–>Local data Advantages: It is easy to handle problems such as sission […]

Rsync remote synchronization & inotify monitoring

Introduction to Rsync rsync (Remote Sync) is an open source fast backup tool that can mirror and synchronize the entire directory tree between different hosts, support incremental backup, and maintain links and permissions. In a remote synchronization task,the client responsible for initiating rsync synchronization operations is called the initiator, and the server responsible for responding […]

[Multi-threading] Explanation of wait, notify and notifyAll

Explanation of wait, notify and notifyAll 1. wait 2. Comparison between wait and sleep 3. notify 4. notifyAll 5. Principle of notify and notifyAll Since threads are executed preemptively, the order of execution between threads is difficult to predict. But in actual development, sometimes we want to reasonably coordinate the execution sequence between multiple threads. […]

rsync remote synchronization + inotify monitoring

Table of Contents 1. Introduction to Rsync 1. What is rsync? 2. Backup method 3. rsync synchronization method 4. Commonly used rsync commands 5. Two expression methods of configuration source 2. rsync experiment 1. Local copy ?Edit?Edit 2. Off-site replication 2.1 rsync server configuration 2.2 rsync client configuration 2.2.1 Normal synchronization 2.2.2 Password-free synchronization 2.2.3 […]

Multithreading and Concurrency (1)-Wait/Notify Model

1. Process communication and process synchronization 1.Methods of process communication Process communication on the same computer is called IPC (Inter-process communication), and process communication between different computers is called RPC (Romote process communication). It needs to go through the network and comply with a common protocol. **The problem solved by process communication is how to […]

centos7.9 deploys rsync+inotify (remote, real-time synchronization, and finally a script)

Foreword In our practical applications, we often do related backups for server data, such as our most common tar package backups, cp backups, scp remote copies, and related backups of mysql databases, and even real-time synchronization of our drbd remote storage (but this solution is very old) and so on. In fact, on the other […]