Skip to content

Commit f78da0e

Browse files
committed
# wording and formatting changes - rsync
1 parent fedd3b5 commit f78da0e

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/books/learning_rsync/03_rsync_demo02.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ update: 2021-11-04
88
# Demonstration based on rsync protocol
99
In vsftpd, there are virtual users (impersonated users customized by the administrator) because it is not safe to use anonymous users and local users. We know that a server based on the SSH protocol must ensure that there is a system of users. When there are many synchronization requirements, it may be necessary to create many users. This obviously does not meet the GNU/Linux operation and maintenance standards (the more users, the more insecure), in rsync, for security reasons, there is an rsync protocol authentication login method.
1010

11-
**How ​​to do it?**
11+
**How to do it?**
1212

13-
Just write the corresponding parameters and values ​​in the configuration file. In Rocky Linux 8, you need to manually create the file <font color=red>/etc/rsyncd.conf</font>.
13+
Just write the corresponding parameters and values in the configuration file. In Rocky Linux 8, you need to manually create the file <font color=red>/etc/rsyncd.conf</font>.
1414

1515
```bash
1616
[root@Rocky ~]# touch /etc/rsyncd.conf
1717
[root@Rocky ~]# vim /etc/rsyncd.conf
1818
```
1919

20-
Some parameters and values ​​of this file are as follows, [ here ](04_rsync_configure.md) has more parameter descriptions:
20+
Some parameters and values of this file are as follows, [ here ](04_rsync_configure.md) has more parameter descriptions:
2121

2222
|Item|Description|
2323
|---|---|
@@ -28,14 +28,14 @@ Some parameters and values ​​of this file are as follows, [ here ](04_rsync_
2828
| [share] | Share name |
2929
| comment = rsync | Remarks or description information |
3030
| path = /rsync/ | The system path location where it is located |
31-
| read only = yes| yes means read only, no means read and write |
32-
| dont compress = \*.gz \*.gz2 \*.zip | Which file types do not compress it |
33-
| auth users = li| Enable virtual users and define what a virtual user is called. Need to create it yourself|
31+
| read only = yes | yes means read only, no means read and write |
32+
| do not compress = \*.gz \*.gz2 \*.zip | Which file types do not compress it |
33+
| auth users = li | Enable virtual users and define what a virtual user is called. Need to create it yourself|
3434
| secrets file = /etc/rsyncd_users.db | Used to specify the location of the virtual user's password file, which must end in .db. The content format of the file is "Username: Password", one per line |
3535

3636
!!! tip "tip"
3737

38-
The permission of the password file must be <font color=red>600</font>
38+
The permission of the password file must be <font color=red>600</font>.
3939

4040
Write some file content to <font color=red>/etc/rsyncd.conf</font>, and write the user name and password to /etc/rsyncd_users.db, the permission is 600
4141

docs/books/learning_rsync/04_rsync_configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In the previous article [ rsync demo 02 ](03_rsync_demo02.md) we introduced some
1111
|Parameters|Description|
1212
|---|---|
1313
| fake super = yes | yes means that you do not need the daemon to run as root to store the complete attributes of the file. |
14-
| uid = | |
14+
| uid = | user id |
1515
| gid = | Two parameters are used to specify the user and group used to transfer files when running the rsync daemon as root. The default is nobody |
1616
| use chroot = yes | Whether the root directory needs to be locked before transmission, yes yes, no no. In order to increase security, rsync defaults to yes. |
1717
| max connections = 4 | The maximum number of connections allowed, the default value is 0, which means that there is no restriction |

docs/books/learning_rsync/05_rsync_authentication-free_login.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ With inotify-tools, this program tool can realize one-way real-time synchronizat
1515

1616
## SSH protocol password-free authentication login
1717

18-
First, generate a public key and private key pair on the client, and keep pressing Enter after typing the command. The key pair is saved in the <font color=red>/root/.ssh/</font> directory
18+
First, generate a public key and private key pair on the client, and keep pressing Enter after typing the command. The key pair is saved in the <font color=red>/root/.ssh/</font> directory.
1919

2020
```bash
2121
[root@fedora ~]# ssh-keygen -t rsa -b 2048

docs/books/learning_rsync/06_rsync_inotify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The event types are as follows:
9191
| move_self | The monitored file or directory has been moved |
9292
| create | There are files or directories created in the monitored directory |
9393
| delete | A file or directory in the monitored directory is deleted |
94-
| delete_self | File or directory and delete |
94+
| delete_self | File or directory delete |
9595
| unmount | File system containing unmounted files or directories |
9696

9797
Example: `[root@Rocky ~]# inotifywait -mrq -e create,delete /rsync/`

docs/books/learning_rsync/07_rsync_unison_use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ update: 2021-11-06
99

1010
As we mentioned earlier, one-way synchronization uses rsync + inotify-tools. In some special usage scenarios, two-way synchronization may be required, which requires inotify-tools + unison.
1111

12-
## Environmental preparation
12+
## Environment preparation
1313

1414
* Both Rocky Linux 8 and Fedora 34 require source code compilation and installation **inotify-tools**, which is not specifically expanded here.
1515
* Both machines must be password-free login authentication, here we use the SSH protocol for

0 commit comments

Comments
 (0)