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: en/12.4.md
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ But what about the cases where we did not backup our data to a cloud service, or
12
12
13
13
### Rsync installation
14
14
15
-
You can find the latest version of rsync from its [official website](http://rsync.samba.org/can). Of course, because rsync is very useful software, many Linux distributions will include already have included it by default.
15
+
You can find the latest version of rsync from its [official website](http://rsync.samba.org/can). Of course, because rsync is very useful software, many Linux distributions will already have it installed by default.
16
16
17
17
Package Installation:
18
18
@@ -30,32 +30,35 @@ For the other Linux distributions, please use the appropriate package management
30
30
31
31
<blockquote>Note: Before using source packages compiled and installed, you have to install gcc compiler tools such as job</blockquote>
32
32
33
-
### Rsync Configure
33
+
### Rsync Configuration
34
34
35
-
rsync mainly in the following three configuration files rsyncd.conf( main configuration file ), rsyncd.secrets( password file ), rsyncd.motd(rysnc server information ).
35
+
Rsync can be configured from three main configuration files: `rsyncd.conf` which is the main configuration file, `rsyncd.secrets` which holds passwords and `rsyncd.motd`, which contains server information.
36
+
37
+
You can refer to the documentation on rsync's official website for a more detailed explanation, but here we will just introduce the basics of setting up rsync on your servers.
36
38
37
39
Several documents about this configuration we can refer to the official website or other websites rsync introduction, here the server and client how to open
- daemon parameter approach is to run rsync in server mode. Join the rsync boot
46
+
-the `--daemon` parameter is for running rsync in server mode. Make this the default boot-time setting by joining it to the `rc.local` file:
44
47
45
-
`echo 'rsync -daemon' >> /etc/rc.d/rc.local`
48
+
`echo 'rsync --daemon' >> /etc/rc.d/rc.local`
46
49
47
-
Set rsync password
50
+
Setup an rsync username and password, making sure that it's owned only by root, so that local unauthorized users or exploits do not have access to it. If these permissions are not set correctly, rsync may not boot:
48
51
49
52
echo 'Your Username: Your Password' > /etc/rsyncd.secrets
50
53
chmod 600 /etc/rsyncd.secrets
51
54
52
55
- Client synchronization:
53
56
54
-
Clients can use the following command to synchronize the files on the server:
57
+
Clients can synchronize servers files with the following command:
0 commit comments