架构-rsync守护进程模式-03
2019-05-30 本文已影响0人
linux_龍
rsync参数
image.png/etc/rsyncd.conf 文件内容详解
image.png1.守护进程远程传输方式
拉取:拉去rsync 备份服务的backuo模块数据至本地/mnt下
[root@nfs01 /tmp]# rsync -avz rsync_backup@172.16.1.41::backup /mnt --password-file=/etc/rsync.password
rsync 命令
-avz 选项
rsync_backup@ 远程主机用户(虚拟目录)
172.16.1.41 远程主机地址
backup 远程主机模块
/mnt 将远程主机数据备份至本地什么位置
sent 37,321 bytes received 80,543,376 bytes 17,906,821.56 bytes/sec
total size is 99,000,674 speedup is 1.23
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [generator=3.1.2]
推送:将本地/mnt目录推送至rsync备份服务器器的backup模块
[root@nfs01 /tmp]# rsync -avz /mnt rsync_backup@172.16.1.41::backup --password-file=/etc/rsync.password
sent 80,542,645 bytes received 37,242 bytes 23,022,824.86 bytes/sec
total size is 98,998,133 speedup is 1.23