Solved

rsync remote backup

Posted on 2006-06-27
4
304 Views
Last Modified: 2013-12-16
Hi all,

I urgently need assistance with the rync remote backuping up, here's the scenario.

I have a local server with IP 192.168.0.7 and have VPN connection to a remote server with IP 192.168.1.5 and I would like to backup data from local server to remote server.

Both server have rsync installed, i run the following command from the local server where the file i want to back is:

rsync -a /jtest/ 192.168.1.5:/usr/Backup_of_Server2/HD2/ but i get the follwoing error message:
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

Can anyone please help me with this?
0
Comment
Question by:akt-uk
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 16995317
This is because you are not authenticated to use the remote connection. The method of authentication can either be shared 'secrets', or key verification.:

http://www.linuxjournal.com/node/6508/print

gives you a better idea of how to do this.

Assuming that you have sshd on the remote server, then I prefer (as the data is transmitted in encrytped form):

rsync -Cavz -e ssh /home/dir user@192.168.1.5:/home

Will work happily. However, you will need to enter passwords. This can be solved using public key cryptography:

http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/

Incidentally, this is the *correct* way to do it in order to maintain the security of the data transferred.

0
 

Author Comment

by:akt-uk
ID: 16996567
pjedmond, thanks for your support but this is all new to me, we had a consultant come in and he setup the script file which runs daily at 02:00 but i don't think he used the method that you mentioned? how and where can i check on the servers how the system is setup?

which is the best way to to test; i would like to copy a test file on a remote server
 
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16996620
crontab -e

Should show you the cron entry. You can then view the script that is run at 0200 daily once you know what it is.

There may also be a few 'keys' that have been transferred between servers in order to cope with the authentication between the servers.

(   (()
(`-' _\
 ''  ''
0
 
LVL 14

Expert Comment

by:ppfoong
ID: 17040749

Read this for step-by-step instruction.

http://www.fredshack.com/docs/rsync.html


0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now