NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Jimbo987's avatar
Jimbo987
Follower
Apr 26, 2016

RN102 to Raspberry Pi Rsync over SSH within LAN

Computers -

 

Home - Same LAN

RN102 - 2 x 4TB HDD Flexraid

OS 6.4.2

 

Raspberry Pi running latest Raspian - No additional storage

 

Offsite Server - WAN

Debian 8.4 based atom server running 24/7 1 x 1TB

 

Office - WAN / VPN possible

RN104 - 4 x 1TB HDD Flexraid

OS 6.4.2

 

Flow of data -

 

Offsite Server -> RN102, RN104

 

(In test scenario) Raspberry Pi -> RN102 (both within the same LAN)

 

Reasoning-

 

I want to incrementally update the home and backup versions from the offsite web hosting, which brings media files down to the RN102 and RN104 in turn, intially I thought the quickest way to create a one way backup would be bittorrent sync. However, files on the web host are constantly deleted which is deleting the data in the backups as well. There are a variety of media files which I would rather backup into the same folder, as in I don't want indiviually dated folders. Rsync seems to fit the bill for this one way sync that simply adds new media and makes no change to the backup folders. If there are any other suggestions on better ways I am game for them.

 

I have been trying for the last week or so to sort out a one way incremental sync between an offsite server running debian and the RN102 / RN104. I thought the easiest way to get a test setup would be to chuck raspian (lightweight Debian) on to the raspberry pi and get a feel for the speeds etc internally, speed is a key requirement and reason for changing to considering rsync. I have not been able to get the setup working at all always getting the 'unable to connect to host' error.


I have followed this guide - http://kb.netgear.com/app/answers/detail/a_id/29929/~/readynas-os-6%3A-setting-up-a-backup-job-with-rsync-over-ssh

 

I am really not sure what I am doing wrong, SSH and rsync is enabled on both the RN102 and the Raspberry Pi, I have added the SSH keys to the known_hosts on both units and I am able to SSH to both units from their respective consoles. I am unclear why there would be no route to host as I am able to connect between both, any guidance would be most appreciated.

 

The log is as below -

 

Backup Job Name: Test
Backup Job Type: Incremental
Protocol: rsync+ssh
Backup Source: [remote:rsync+ssh]/192.168.1.71:/home/
Backup Destination: [Documents]/Test
Backup Start Time: Tue Apr 26 2016  0:05:11
Backup Finish Time: Tue Apr 26 2016  0:07:22
Backup Status: Fail: failure during copy.

Failed to run rsync, return rc 65280 (255)
'rsync' command returns rc=65280

ssh: connect to host 192.168.1.71 port 22: No route to host
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]



----------------------------------------
Backup Job Name: Test
Backup Job Type: Full
Protocol: rsync
Backup Source: [remote:rsync]/192.168.1.71::home/
Backup Destination: [Documents]/Test
Backup Start Time: Mon Apr 25 2016 13:57:02
Backup Finish Time: Mon Apr 25 2016 13:57:02
Backup Status: Fail: failure during copy.

2 Replies

  • AlexPe's avatar
    AlexPe
    NETGEAR Expert

    Hi Jimbo,

     

    Does a normal Rsync job connect to the Raspberry pie? Without SSH? It seems it is not working on the port 22 maybe? Looks like it is getting a refuse connection this is what it looks like from the error perspective.

     

    Another idea to do is to try to and use the NAS to pull from raspberry pie.

     

    But it seems that SSH is not responding to the request initially.

     

    AlexPe

    • kohdee's avatar
      kohdee
      NETGEAR Expert

      ssh: connect to host 192.168.1.71 port 22: No route to host

       

      "No route to host" means that the ReadyNAS has no idea how to get to your Raspberry Pi. What is the IP address of your RN102? Is it not in the same subnet? Do you have multiple network devices (like routers actings as routers) causing multiple subnet confusion?  If you did connect to the Raspberry Pi but SSH wasn't listening, you would get "connection refused."

       

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More