rsync server backup through ssh tunnel issue
Diagram:
localmc -> Gateway -> remotemc
rsync server version 2.6.9 ,server is running on remote m/c , want to
backup files /home/rsync/backup/* dir to localmc.
On remote m/c , we have these :
cat rsyncd.conf
# /flood/rsyncd.conf
#
uid = rsync
gid = rsync
max connections = 4
[backup]
path = /home/rsync/backup
comment = Backup repository (requires authentication)
auth users = rsync
secrets file = /flood/rsyncd.secrets
read only = yes
[restore]
path = /home/rsync/restore
comment = Restore repository (requires authentication)
auth users = rsync
secrets file = /flood/rsyncd.secrets
read only = no
Permissions:
drwxrwxrwx 4 rsync rsync 4096 Jan 7 00:00 /home/rsync/backup
Here are the steps that i performed :
ssh -L 9873:remotemc:873 Gatewaty -l user-name
user-name => gateway login name
After that whenever i am trying to run this command
[root@comp3 rsync]# rsync -av rsync://rsync@127.0.0.1 --port=9873 backup/* .
backup Backup repository (requires authentication)
restore Restore repository (requires authentication)
i am getting these above messages . it looks like its been able to connect to remotemc but am not able to figure out why its not copying the files from backup dir to local machine .
thanks,
Last edited by vidhut; 01-06-2009 at 01:43 AM.
|