rsync同步備份急需解決辦法
uid = root
gid = root
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
path = /home
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors
read only = yes
list = no
auth users = root
secrets file = /etc/rsyncd.pas
# cat /etc/rsyncd.pas
root:password
客戶端
# rsync -vzrtopg --progress --delete backup@192.168.1.55::backup
Password:
@ERROR: auth failed on module backup
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
服務端的錯誤日誌
nore errors
2008/06/20 18:26:48 name lookup failed for 192.168.1.56: Name or service not known
2008/06/20 18:26:50 auth failed on module backup from UNKNOWN (192.168.1.56)
請問高手如何解決~!!!著急~!!
按照樓下的幫助改變后
uid = root
gid = root
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
path = /home
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors
read only = yes
list = no
auth users = root
secrets file = /etc/rsyncd.pas
rsync -vzrtopg --progress --delete root@192.168.1.55::root /root/path
客戶端
@ERROR: auth failed on module root
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
服務端日誌
2008/06/23 09:38:03 secrets file must not be other-accessible (see strict modes option)
2008/06/23 09:38:03 continuing without secrets file
2008/06/23 09:38:03 auth failed on module root from UNKNOWN (192.168.1.56)
本人新手 謝謝大家指導,或者大家提供我一個簡單的方法也行 謝謝了
[ 本帖最後由 1330313150 於 2008-6-23 09:25 編輯 ]
《解決方案》
配的亂七八糟的
明明 auth users = root
為什麼要用 backup@192.168.1.55 這樣能驗證成功才見鬼呢
你到底是要用root用戶還是用backup用戶呀
你準備把文件備份到哪裡呢? 難道只寫源地址不用目的地址的嗎?
兄弟, 你讓我非常無語
《解決方案》
auth failed on module backup from UNKNOWN
找不你定義的 backup 模塊
path = /home
comment = BACKUP CLIENT IS SOLARIS 8 E250
ignore errors
read only = yes
list = no
auth users = root
secrets file = /etc/rsyncd.pas
這部需要在客戶端配置上,
你備到那裡儲存路徑,沒有路徑
rsync -vzrtopg --progress --delete backup@192.168.1.55::backup
改為
rsync -vzrtopg --progress --delete backup@192.168.1.55::backup /backup/path
《解決方案》
其實服務端不用配置的,如果你不是定時運行的,rsync.conf 者不用配置,
可以如下
rsync -vzrtopg --delete -e ssh root@192.168.1.7:/home/test/ /home/backupl/
或者
rsync -vzrtopg --delete -e ftp ftpuser@192.168.1.7:/home/test/ /home/backupl/
《解決方案》
學習一下,以後許能用上
《解決方案》
rsync SRC...
缺少目標地址吧
還有,源地址uid你用的是root,腳本里的用戶卻是backup@192.168.1.55
《解決方案》
:mrgreen: 不會吧,偶安裝了以後根本不用配置。
rsync可使用守護進程或者不用,只要遠程和本地都裝有rsync就行. rsync可以進行本地到本地,本地到遠程,遠程到本地拷貝,不能進行遠程到遠程拷貝。
問題應該是樓上諸位所說的: 你沒有指定目標地址
拷貝到當前目錄下
rsync -vzrtopg --progress --delete backup@192.168.1.55::backup .
[ 本帖最後由 angeljyt 於 2008-6-22 01:09 編輯 ]
《解決方案》
回復 #3 luo118 的帖子
用SSH
# rsync -vzrtopg --delete -e ssh ftpuser@192.168.1.55:/home/ /home/
The authenticity of host '192.168.1.55 (192.168.1.55)' can't be established.
RSA key fingerprint is c8:8c:76:ba:18:01:d6:8b:fa:46:45:de:f3:9f:76:74.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.55' (RSA) to the list of known hosts.
ftpuser@192.168.1.55's password:
Permission denied, please try again.
ftpuser@192.168.1.55's password:
Permission denied, please try again.
ftpuser@192.168.1.55's password:
Permission denied (publickey,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
會出現這個
《解決方案》
原帖由 luo118 於 2008-6-20 19:39 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
其實服務端不用配置的,如果你不是定時運行的,rsync.conf 者不用配置,
可以如下
rsync -vzrtopg --delete -e ssh root@192.168.1.7:/home/test/ /home/backupl/
或者
rsync -vzrtopg --delete -e ftp f ...
# rsync -vzrtopg --delete -e ssh ftpuser@192.168.1.55:/home/ /home/
The authenticity of host '192.168.1.55 (192.168.1.55)' can't be established.
RSA key fingerprint is c8:8c:76:ba:18:01:d6:8b:fa:46:45:de:f3:9f:76:74.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.55' (RSA) to the list of known hosts.
ftpuser@192.168.1.55's password:
Permission denied, please try again.
ftpuser@192.168.1.55's password:
Permission denied, please try again.
ftpuser@192.168.1.55's password:
Permission denied (publickey,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
會出現這個問題 怎麼解決?
《解決方案》
原帖由 1330313150 於 2008-6-23 09:31 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
# rsync -vzrtopg --delete -e ssh ftpuser@192.168.1.55:/home/ /home/
The authenticity of host '192.168.1.55 (192.168.1.55)' can't be established.
RSA key fingerprint is c ...
密碼認證失敗