Fix grammar and translations in section "rsync installation" in 12.4.md

This commit is contained in:
Anchor
2015-01-01 23:29:03 -08:00
committed by James Miranda
parent d75218d98b
commit e235762e5a

View File

@@ -12,7 +12,7 @@ But what about the cases where we did not backup our data to a cloud service, or
### Rsync installation
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.
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.
Package Installation:
@@ -30,32 +30,35 @@ For the other Linux distributions, please use the appropriate package management
<blockquote>Note: Before using source packages compiled and installed, you have to install gcc compiler tools such as job</blockquote>
### Rsync Configure
### Rsync Configuration
rsync mainly in the following three configuration files rsyncd.conf( main configuration file ), rsyncd.secrets( password file ), rsyncd.motd(rysnc server information ).
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.
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.
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
- Services client opens:
- Starting an rsync daemon server-side:
`# /usr/bin/rsync --daemon --config=/etc/rsyncd.conf`
- daemon parameter approach is to run rsync in server mode. Join the rsync boot
- 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:
`echo 'rsync - daemon' >> /etc/rc.d/rc.local`
`echo 'rsync --daemon' >> /etc/rc.d/rc.local`
Set rsync password
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:
echo 'Your Username: Your Password' > /etc/rsyncd.secrets
chmod 600 /etc/rsyncd.secrets
- Client synchronization:
Clients can use the following command to synchronize the files on the server:
Clients can synchronize servers files with the following command:
rsync -avzP --delete --password-file=rsyncd.secrets username@192.168.145.5::www/var/rsync/backup
This command, briefly explain a few points:
Let's break this command down into a few key points:
1. `-avzP` is what the reader can use the `-help` Show
2. `-delete` for example A, deleted a file, the time synchronization, B will automatically delete the corresponding files