Practice diary: configuration and use of rsync in Linux

Source: Internet
Author: User

Users of Linux want to skillfully use Linux. So I installed a lot of software on my computer. This section describes how to configure and use rsync in Linux. I hope you can learn how to configure and use rsync in Linux. The testing environment in this test uses Redhat AS42 servers, one server and one client)

Ip address of the rsync server: 192.168.23.102
Ip address of the rsync client: 192.168.23.100

Configure the server first:

1. Install the rsync package

[Root @ rhel403 old] # rpm-q rsync
Rsync-2.6.3-1

2. rsync only uses one configuration file:/etc/rsyncd. conf.

 
 
  1. [Root @ rhel403 old] # more/etc/rsyncd. conf
  2. Uid=Nobody
  3. Gid=Nobody
  4. MaxConnections=200
  5. Timeout=600
  6. UseChroot=No
  7. ReadOnly=Yes
  8. PidFile=/Var/run/rsyncd. pid
  9. Host_allow=192. 168.23.100 // write the Client IP address here
  10. # SyslogFacility=Local7
  11. # LogFile=/Var/log/rsyncd. log
  12. # Rsync config
  13. # The 'standard' things
  14. [Rsync_gmmold] // defines the synchronization path. The client uses this keyword for Link)
  15. Path=/Gmm/old // path to be synchronized
  16. Comment=Gmmold// Unknown for the moment

3. Start the service

#/Usr/bin/rsync -- daemon

4. Add to boot

Echo "/usr/bin/rsync -- daemon">/etc/rc. local

5. Start during rsync check

# Ps-ef | grep rsync

6. Stop the service

# Kill 'cat/var/run/rsyncd. Pi'

The configuration of the client is as follows:

1. Install the rsync package

[Root @ rhel403 old] # rpm-q rsync
Rsync-2.6.3-1

2. synchronize with the server:

# Rsync-auqz 192.168.23.102: rsync_gmmold/tmp/old

After completing the preceding steps, you will learn how to configure and use rsync in Linux.

  1. Use logs to make Linux management easier
  2. Operation notes: Linux Framebuffer Programming
  3. Detailed introduction to Linux File Types
  4. Command Daquan: Linux advanced command line skills
  5. Introduction Linux screenshot tool: import

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.