Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Rsync---- incremental backup tool

Shulou Source: shulou.com Published: 2022-06-03 04:52:51 11月25日 Update

Sync: synchronize the data in memory to the hard disk

Features:

Facilitate incremental backup

You can mirror and save the entire directory tree and file system.

Maintain permissions, time, soft and hard links of the file

High transmission efficiency

You can use SSH encrypted channels

Enable rsync:

Vi / etc/xinetd.d/rsync

Disable = yes = > disable = no # Save exit

Restart xinetd:

Service xinetd restart

If you do not have xinetd installed, you need to install:

Yum install xinetd-y

Chkconfig xinetd on

Examples of use:

1. Back up the remote directory locally

Rsync-arHz-- progress-- delete wap@192.168.247.132:~/test. / tem

-- progress: displays the execution process

two。 Back up the local directory to a remote server

Rsync-arHz-- progress-- delete. / tem wap@192.168.247.132:~/test

Description: when the contents of the directory change, the changed part will be backed up when the backup command is executed again, thus realizing the incremental backup.

Attribute description:

-a: save file properties

-r: subdirectory recursive processing

-H: save the file hard connection

-z: compression processing during backup file transfer

-- progress: displays the transmission process during transmission

-- delete: delete files that are not available in the target backup, and delete them synchronously

-e ssh: use SSH to encrypt tunnel transport (recommended)

For example: rsync-arHz-- progress-- delete-e ssh. / tem wap@192.168.247.132:~/test

Tags: Backup file transfer directory increment attribute procedure encryption change synchronization processing memory content again command subdirectory subdirectory efficiency data time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei Apple Xiaomi Docker