You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/books/learning_rsync/03_rsync_demo02.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,16 @@ update: 2021-11-04
8
8
# Demonstration based on rsync protocol
9
9
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.
10
10
11
-
**How to do it?**
11
+
**How to do it?**
12
12
13
-
Just write the corresponding parameters and values in the configuration file. In Rocky Linux 8, you need to manually create the file <fontcolor=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 <fontcolor=red>/etc/rsyncd.conf</font>.
14
14
15
15
```bash
16
16
[root@Rocky ~]# touch /etc/rsyncd.conf
17
17
[root@Rocky ~]# vim /etc/rsyncd.conf
18
18
```
19
19
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:
21
21
22
22
|Item|Description|
23
23
|---|---|
@@ -28,14 +28,14 @@ Some parameters and values of this file are as follows, [ here ](04_rsync_
28
28
|[share]| Share name |
29
29
| comment = rsync | Remarks or description information |
30
30
| 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|
34
34
| 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 |
35
35
36
36
!!! tip "tip"
37
37
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>.
39
39
40
40
Write some file content to <fontcolor=red>/etc/rsyncd.conf</font>, and write the user name and password to /etc/rsyncd_users.db, the permission is 600
Copy file name to clipboardExpand all lines: docs/books/learning_rsync/04_rsync_configure.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ In the previous article [ rsync demo 02 ](03_rsync_demo02.md) we introduced some
11
11
|Parameters|Description|
12
12
|---|---|
13
13
| 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 |
15
15
| 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 |
16
16
| 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. |
17
17
| max connections = 4 | The maximum number of connections allowed, the default value is 0, which means that there is no restriction |
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 <fontcolor=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 <fontcolor=red>/root/.ssh/</font> directory.
Copy file name to clipboardExpand all lines: docs/books/learning_rsync/07_rsync_unison_use.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ update: 2021-11-06
9
9
10
10
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.
11
11
12
-
## Environmental preparation
12
+
## Environment preparation
13
13
14
14
* Both Rocky Linux 8 and Fedora 34 require source code compilation and installation **inotify-tools**, which is not specifically expanded here.
15
15
* Both machines must be password-free login authentication, here we use the SSH protocol for
0 commit comments