Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Rsync server

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to build a Rsync server". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to build a Rsync server".

#! / bin/bash### File Name: Rsync.sh# Version: V1.The Author: Da Kai# Organization: http://dakaige517.blog.51cto.com# Created Time: 2017-06-25 13 Rsync.sh# Version 06 purl 27 # Description:This is a Shell script to install the rsync service###. / etc/init.d/functionsfunction install_check () {rpm-qa rsyncif [$?-eq 0] then action "Rsync is installed" / bin/true else echo "Rsync is not installed" yum install rsync-yfi} function install () {if [- f / etc/rsyncd.conf] then echo "/ etc/rsyncd.conf is exist." Else cat > / etc/rsyncd.conf > / etc/rc.local else action "Rsync service is failed to start" / bin/falsefi ps-ef | grep "rsync-- daemon" if [$?-eq 0] then action "Rsync service is running." / bin/true else action "Rsync service is not running." / bin/falsefi} function add_modul () {echo-e "Usage:\ n [backup]\ npath = / backup/" echo " -add module-"read-p" Please add module name: "name read-p" Please add the corresponding location (directory) of the module path = "directorymkdir-p $directory cat > > / etc/rsyncd.conf

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report