LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-06-2009, 01:40 AM   #1
vidhut
LQ Newbie
 
Registered: Mar 2005
Location: pune
Posts: 2

Rep: Reputation: 0
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.
 
Old 01-06-2009, 03:53 AM   #2
vidhut
LQ Newbie
 
Registered: Mar 2005
Location: pune
Posts: 2

Original Poster
Rep: Reputation: 0
i figured out the solutions , thanks for help....

use ssh as transport .
ssh -l user-name -L 1839:remote:22 gateway

rsync command:
rsync -e 'ssh -p 1839' --delete -az root@localhost:/home/rsync/backup/* .

thanks./

Pls let me know if there are any other alternatives .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Tunnel issue tpe Linux - Software 5 01-25-2008 09:25 AM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
Rsync through a VPN/SSH tunnel... Akonbobot Linux - Desktop 1 10-10-2006 11:26 PM
rsync + ssh = backslash issue mrjamin Linux - Software 1 05-24-2006 02:16 AM


All times are GMT -5. The time now is 04:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration