rsync的配置
来源:互联网 发布:township清除数据ios 编辑:程序博客网 时间:2024/05/19 03:42
怎么使用rsync呀?
/etc/rsyncd.conf如下:
uid = nobody
gid = nobody
use chroot = no # 不使用chroot
max connections = 4 # 最大连接数为4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log # 日志记录文件
[inburst] # 这里是认证的模块名,在client端需要指定
path = /home/soft/ # 需要做镜像的目录
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors # 可以忽略一些无关的IO错误
read only = yes # 只读
list = no # 不允许列文件
auth users = inburst # 认证的用户名,如果没有这行,则表明是匿名
secrets file = /etc/inburst.pas # 认证文件名
[web]
path = /usr/local/apache/htdocs/
comment = inburst.org web server
然后/etc/inburst.pas如下:
inburst:hack
有用户nobody组nobody
用户inburst密码hack
/home/soft/ 为777
用指令rsync -vzrtopg --progress --delete inburst@192.168.92.154::inburst /tmp/
Password:
@ERROR: auth failed on module inburst
用telnet 192.168.92.154 873
Trying 192.168.92.154...
Connected to 192.168.92.154.
Escape character is '^]'.
@RSYNCD: 24
ls
@ERROR: protocol startup error
Connection closed by foreign host.
/etc/rsyncd.conf如下:
uid = nobody
gid = nobody
use chroot = no # 不使用chroot
max connections = 4 # 最大连接数为4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log # 日志记录文件
[inburst] # 这里是认证的模块名,在client端需要指定
path = /home/soft/ # 需要做镜像的目录
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors # 可以忽略一些无关的IO错误
read only = yes # 只读
list = no # 不允许列文件
auth users = inburst # 认证的用户名,如果没有这行,则表明是匿名
secrets file = /etc/inburst.pas # 认证文件名
[web]
path = /usr/local/apache/htdocs/
comment = inburst.org web server
然后/etc/inburst.pas如下:
inburst:hack
有用户nobody组nobody
用户inburst密码hack
/home/soft/ 为777
用指令rsync -vzrtopg --progress --delete inburst@192.168.92.154::inburst /tmp/
Password:
@ERROR: auth failed on module inburst
用telnet 192.168.92.154 873
Trying 192.168.92.154...
Connected to 192.168.92.154.
Escape character is '^]'.
@RSYNCD: 24
ls
@ERROR: protocol startup error
Connection closed by foreign host.
阅读全文
0 0
- rsync的配置
- rsync的配置使用
- rsync的配置
- rsync 的配置
- rsync服务器的配置
- rsync的安装配置
- rsync的配置
- AIX下rsync的配置
- rsync的配置与应用
- 最簡單的rsync配置方法
- rsync的安装和配置
- RSync的配置与使用
- Rsync的配置与使用
- Rsync的配置与使用
- rsync 服务器的安装配置
- rsync的安装与配置
- rsync 配置
- rsync 配置
- 计算机蓝屏处理办法
- spark SQL
- 基于大华SDK 实现大华NVR 取流显示和文件回放功能的实现
- Linode服务器购买与LNMP搭建
- centos 新增用户
- rsync的配置
- 转: 联合体(union)的使用方法及其本质
- Win10手记-取色器ColorPicker的实现
- 并发编程<五>并发处理之synchronized
- MongoDB 杀死后台命令
- 期刊发表要求大概有哪些
- AAPT2 Error
- securecrt 直连无法连上,需要中间主机跳转的方法
- Linux内核IP Queue机制的分析(三)——ip_queue内核模块的分析(下)