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 […]
Tag: notify
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
1. Introduction to rsync synchronization A fast incremental backup tool rsync (Remote Sync, remote synchronization) is an open source fast backup tool that supports local replication or synchronization with other SSH and rsync hosts. cp: Copy the original file completely to the specified path, and make a full backup rsync: do local copy 1. First […]
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 […]
How to notify users after front-end deployment update upgrade
1. Scene After the front-end is built and launched, the user is still stuck on the old page. The user does not know that the web page has been redeployed. When jumping to the page, sometimes the js connection hash changes, resulting in an error and unable to jump, and the user cannot experience the […]
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 […]
Related knowledge of concurrent programming-notify and wait, CompletableFuture
1.Use of notify and wait methods 1.1 Express arrival notification Explanation: The location of the express delivery is in Shanghai, 500km away from the express delivery place. Each time the express delivery is changed, the express delivery will move forward 100km. When the express delivery advances 100km, the current location of the express delivery needs […]