全部博文(1144)
分类: Oracle
2013-09-04 10:10:59
登陆
#!/usr/bin/perl
#
use warnings;
use strict;
use POSIX qw(strftime);
use Encode qw(encode decode);
$ENV{'RSYNC_PASSWORD'}='x3ro1a2';
open FH,"/usr/bin/rsync --port 1230 --exclude *.import* -ru xroa\@192.168.1.137::xroa /root/xroa/ |" or die "$!";
while(
print;
}
close FH;
主配置
pid file = /home/oax/rsyncdauthoax/rsyncd.pid
log file = /home/oax/rsyncdauthoax/rsyncd.log
lock file = /home/oax/rsyncdauthoax/rsyncd.lock
uid = root
gid = root
use chroot = false
read only = yes
reverse lookup = no
#hosts allow=172.16.33.121/255.255.255.255,192.168.3.227/255.255.255.255
hosts allow=*
#hosts deny=*
max connections = 100
motd file = /home/oax/rsyncdauthoax/rsyncd.motd
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
[xroa_data]
path=/home/oax/var/sorbs_data
comment=sorbs data
read only=yes
auth users=xroa
secrets file = /etc/rsyncd.secrets
[oax_auth]
path=/home/oax/var/oax
comment=oax conf service
auth users=oax_sync
secrets file = /etc/rsyncd.secrets
read only=yes