Category: Files

Rsync Usage Tips and Precautions

A recent project required using rsync to push small files. Initially, I found the efficiency to be lacking, and excessive push processes led to high load and increased iowait on the destination machine. rsync is a great tool, but it needs to be used properly. So, I’ve summarized a few key considerations.
1: When synchronizing, try to use the destination …

Manual rsync Deployment

When updating production applications, manual deployment is prone to errors and omissions. Here we use Linux’s built-in rsync functionality to automatically sync applications from the test machine to the production machine once they pass testing. We refer to the test machine as the Master and the production machine as the Slave. Applications are synced from the test machine to the production machine, from Master to Sla …

How to Use Rsync for Remote Disaster Recovery Backup

rsync is a data mirroring backup tool for Linux systems. With rsync, you can back up local system data to any remote host over a network. Key features of rsync include: It can mirror entire directory trees and file systems
It supports incremental data synchronization, offering high file transfer efficiency because …

Bidirectional Real-Time Remote File Sync with inotify+rsync and NFS

How to Set Up Two-Way Real-Time File Sync Between Linux Servers
In a project requiring real-time file synchronization between two machines, we tried the following two methods:
Project requirement: Machine A (190) and Machine B (217) need to keep a folder’s contents identical to each other. Both Machine A and Machine B might receive files independently and must sync them to the other side.
Method 1: Using rsync-serve …

NFS Setup on CentOS 6.x

1. Required packages for NFS installation; Need nfs-utils and rpcbind; 2. Use the following commands to check if the above packages are already installed on the system: rpm -qa|grep nfs; rpm -qa|grep rpcbind; If already installed, proceed directly to step 3; if not …

My Take on Linux Rsync Configuration

Server Side

rsyncd.conf

uid = nobody
gid = nobody
use chroot= no
max connections = 10
strict mode = yes //Whether to check file permissions
pid file=/var/run/rsyncd.pid //Daemon process path
lock f …

How to Use Linux Rsync Command for Multi-Server Mirror Synchronization

How to Use Linux rsync Command for Multi-Server Mirror Synchronization

Implementation: When a user creates, modifies, or deletes directories or files, or changes the attributes of directories or files in a certain directory on the local client, as long as the same shell script is executed, rsync will automatically identify the changed or deleted data and transfer it …