Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5273948
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: 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

阅读(1171) | 评论(0) | 转发(0) |
0

上一篇:Perl程序的打包

下一篇:oracle arr 基准线

给主人留下些什么吧!~~