rsync 푸시 문제

1577 단어
오류 원인: 클라이언트가/data를 서버 클라이언트로 전송하여 정상적인 서버/backup 하공을 표시합니다
 
[root@nfs01 /data]# rsync -avz /data [email protected]::backup
sending incremental file list
data/
data/1.txt
data/10.txt
data/2.txt
data/3.txt
data/4.txt
data/5.txt
data/6.txt
data/7.txt
data/8.txt
data/9.txt

sent 610 bytes  received 218 bytes  1,656.00 bytes/sec
total size is 0  speedup is 0.00
 
root@backup ~]# ls /backup/
 
 
[root@backup /backup]# ls -ld /backup/
drwxr-xr-x 4 rsync rsync 50 4   19 16:21 /backup/
[root@backup /backup]# cat /etc/rsyncd.conf
#rsync_config_______________start
#created by oldboy
#site: http://www.oldboyedu.com
uid = rsync
gid = rsync
use chroot = no
fake super = yes
max connections = 200
timeout = 600 
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
ignore errors
read only = false
list = false
hosts allow = 172.16.1.0/24
hosts deny = 0.0.0.0/32
auth users = rsync_backup
secrets file = /etc/rsync.password
[backup]
comment = welcome to oldboyedu backup!
path = /backup/
[oldboy]
path = /oldboy/
[root@backup /backup]#  cat /etc/rsync.password
rsync_backup:oldboy
[root@backup /backup]#  ls -l /etc/rsync.password
-rw------- 1 root root 20 4   15 16:20 /etc/rsync.password
 
[root@nfs01 ~]# cat /etc/rsync.password 
oldboy
[root@nfs01 ~]# ls -l /etc/rsync.password 
-rw------- 1 root root 7 4   15 11:56 /etc/rsync.password
[root@nfs01 ~]# tail -2 /etc/bashrc
# vim:ts=4:sw=4
 export RSYNC_PASSWORD=oldboy

 
 
 
 /backup 
rm -rf /backup
 /backup
mkdir -p /backup
 
chown rsync.rsync /backup
 

좋은 웹페이지 즐겨찾기