rsyncd.conf 설정예

#!/bin/sh

/usr/bin/rsync -avzrt –delete 210.95.174.21::data /USER_DIR/maildir

#!/bin/sh

/usr/bin/rsync -avzrt –delete 210.95.174.21::mysql /usr/local/mysql/var/mail

#!/bin/sh

/usr/bin/rsync -avzrt –delete 210.95.174.21::httpd /home/httpd

#####/etc/rsyncd.conf 설정#####

motd file = /etc/rsync.motd

log file = /RLOG/rsyncd.log

pid file = /var/run/rsyncd.pid

max connections = 3

syslog facility = local3

[data]

path = /DATA_BACKUP/maildir

comment = user directory

uid = root

gid = root

use chroot = yes

read only = yes

hosts allow = 210.95.174.26

timeout 600

[mysql]

path = /usr/local/mysql/var/mail

comment = mysql data

uid = root

gid = root

use chroot = yes

read only = yes

hosts allow = 210.95.174.26

timeout 600

[httpd]

path = /home/httpd

comment = homepage data

uid = root

gid = root

use chroot = yes

read only = yes

hosts allow = 210.95.174.26

timeout 600

30 03 * * * su – root -c ‘/root/scripts/data.sh’

30 04 * * * su – root -c ‘/root/scripts/mysql.sh’

45 04 * * * su – root -c ‘/root/scripts/httpd.sh’

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

2 Responses

  1. 2024년 9월 28일

    … [Trackback]

    […] There you can find 24207 additional Information to that Topic: nblog.syszone.co.kr/archives/3008 […]

  2. 2024년 10월 17일

    … [Trackback]

    […] Find More here to that Topic: nblog.syszone.co.kr/archives/3008 […]

페이스북/트위트/구글 계정으로 댓글 가능합니다.