Install rsync on CentOS8 (version check) and file backup (synchronization)

First, install rsync and check the version

Installed below. (It seems that dnf has become the standard for installation from CentOS 8)

command


dnf -y install rsync

After the installation is complete, check the version below.

command


rsync --version

image.png

First, check the operation of 1 file copy

Command to copy the "/from/test1.txt" file to the "/ to /" folder. However, ** only the operation check ** is done without actually copying.

command


rsync -vn /from/test1.txt /to/

The result looks like this. (File is not copied) image.png Before you get used to it, you should add `` `-vn```.

Let's take a look at the options

command


rsync -help

result… image.png image.png (The total is about twice as much as this image ...)

For now, just remember the option to mirror the folder

I want to make the contents of the "/ to" folder the same as "/ from"! That option.

command


rsync -acv --delete /from/ /to/

When synchronizing folders, be careful not to forget to add "/" at the end of the copy source file path. If you do not add it, a "/ to/from" folder will be created and copied into it ...

Serpentine

I checked using Docker Desktop this time as well.

Reference site

https://www.server-world.info/query?os=CentOS_8&p=rsync https://www.atmarkit.co.jp/ait/articles/1702/02/news031.html

version

Windows10 Pro version 1909 OS build 19042.685 Docker Desktop:3.0.0(50684) Engine:20.10.10 Compose:1.27.4 CentOS Linux release 8.2.2004 (Core) rsync version 3.1.3 protocol version 31

Recommended Posts

Install rsync on CentOS8 (version check) and file backup (synchronization)
Install Java 9 on windows 10 and CentOS 7
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install MySQL 5.6 on CentOS6 [How to specify the version]
Install OpenFOAM v2006 on CentOS
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Install Ruby 2.7 on CentOS 7 (SCL)
Install Golang / MariaDB on CentOS8, connect to DB and execute SQL
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
Try DPDK20 SDK on CentOS7 ①Install
Enable Openjdk10 and maven on CentOS
Install JDK and JRE on Ubuntu 16.10
Install Ruby 2.5 on CentOS 7 using SCL
Install and configure jenv on macOS
How to install MariaDB 10.4 on CentOS 8
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
Install docker and docker-compose on Alpine Linux
Install samba4 from source code on CentOS8
Change JDK and Tomcat versions on CentOS
How to install beta php8.0 on CentOS8
Install CentOS 7 on Raspberry pi 4 Model B
Installing and configuring ClipBucket and Nginx on CentOS 7
Switch between GUI and CUI on CentOS6.