//
× We are currently experience some connectivity issues related to apps.readynas.com.Check for Updates.
× We are experiencing an outage of our ReadyCloud service and are working to resolve the issue..
× ReadyNAS Board Restructure - Complete - Please Read and Comment
× Nighthawk Pro Gaming is Streaming Live on Twitch! Live Q&A with the NPG Team and our Sponsors! (watch now…)

This topic has been marked solved and closed to new posts due to inactivity. We hope you'll join the conversation by posting to an open topic or starting a new one.

NETGEAR ® COMMUNITY
  • Downloads
  • MyNETGEAR
  • Community
  • Support
  • Netgear
  • United States
    • 中国 (汉语)
    • Deutschland (Deutsch)
    • España (Español)
    • France (Français)
    • Italia (Italiano)
    • 日本 (日本語)
    • Netherlands (Dutch)
    • Sweden (Svenska)
    • United States (English)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
  • English
  • /
  • NETGEAR Forum
  • /
  • Business Solutions
  • /
  • ReadyNAS Network Storage
  • /
  • New ReadyNAS Users & General Discussion
  • /
  • Re: - can' t backup remotely through ssh and rsync
Log In
Join Now
  • Community Home
  • Community Browser:
  • NETGEAR Website
  • Support
  • Downloads
  • MyNETGEAR
Log In
  • English
  • /
  • NETGEAR Forum
  • /
  • Business Solutions
  • /
  • ReadyNAS Network Storage
  • /
  • New ReadyNAS Users & General Discussion
  • /
  • Re: - can' t backup remotely through ssh and rsync
  • Join Now
  • |
  • Log In
  • |
  • Help

Start a New Discussion

Discussion stats
  • 11 replies
  • ‎2019-10-13 01:17 PM
  • 364 views
  • 0 kudos
  • 2 in conversation
    • StephenB
    • Kalle13
Announcements

Networking Deals Guide for Business and SoHo

Enabling Next-Gen AV over IP Networks - Analyst Day 2019

Cost effective network deployment for small business #Webinar 11/6

New Managed M4300 Fiber and PoE Switches #Webinar

Let us help with AV-over-IP proavdesign@NETGEAR.com

Evolution of PoE #NowAtNETGEAR

Insight 5.7 Features #Webinar

NETGEAR Business Produces and Services @ IFA2019 Berlin

Insight 5.7 Update Now Available

Ethernet Splitter Vs. Ethernet Switch

New Small Remote Managed PoE Switches GC108P & GC108PP

NETGEAR Insight Pro Network Management System enables higher profitability for Resellers

Top Contributors
User Count
StephenB
Guru StephenB Guru
16
Sandshark
Sandshark Master
5
bedlam1
bedlam1 Prodigy
2
schumaku
schumaku Sensei
1
fastfwd
fastfwd Virtuoso
1
See All
Latest ReadyNAS Community News:
Reply
Topic Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Printer Friendly Page
  • All forum topics
  • Previous Topic
  • Next Topic
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 01:17 PM
‎2019-10-13 01:17 PM

- can' t backup remotely through ssh and rsync

Hello,

 

I would like to backup some files from a Debian Computer via ssh and rsync. My firmware version is 6.10.1.

When I am configuring my remote backup I choose on the left side "remote" and on the right site "local". The configuration on the remote part runs successfully and the test is also successfull. I can login as root and can choose the folder. On the "local" side I choose a local folder on the NAS. But after I finish the procedure I always get the same failure: "The source and target can' t be equal".
That's weird they are not equal at all.  


Do you have an idea what this means?

Beat regards
Kalle

 

Solved! Go to Solution.

Model: RN21400|ReadyNAS 214 Series 4- Bay (Diskless)
Message 1 of 12
0 Kudos
Reply

Accepted Solutions
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 01:54 PM
‎2019-10-14 01:54 PM

Re: - can' t backup remotely through ssh and rsync

What should I say, now it works. I found an other post about this exact same error (shame on me). If anybody has this error here you can find the solution.

This Problem is solved!

View solution in original post

Message 12 of 12
0 Kudos
Reply

All Replies
StephenB
Guru StephenB Guru
Guru
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 01:22 PM
‎2019-10-13 01:22 PM

Re: - can' t backup remotely through ssh and rsync

What IP address are you using for the remote source?

 

Have you tried doing this with rsync (not rsync over ssh)?

Message 2 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 01:32 PM
‎2019-10-13 01:32 PM

Re: - can' t backup remotely through ssh and rsync

Hi Steven,

 

> What IP address are you using for the remote source?

It' s an IP from my LAN range: 192.168.178.*

> Have you tried doing this with rsync (not rsync over ssh)?

No, because I have not configured rsync as a server.

Message 3 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 01:32 PM
‎2019-10-13 01:32 PM

Re: - can' t backup remotely through ssh and rsync

*Stephen

Message 4 of 12
0 Kudos
Reply
StephenB
Guru StephenB Guru
Guru
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 02:14 PM
‎2019-10-13 02:14 PM

Re: - can' t backup remotely through ssh and rsync


@Kalle13 wrote:

> What IP address are you using for the remote source?

It' s an IP from my LAN range: 192.168.178.*

Main question here was whether it was the IP of the debian pc.

 


@Kalle13 wrote:

> Have you tried doing this with rsync (not rsync over ssh)?

No, because I have not configured rsync as a server.


???  It needs to be configured as a server on the debian machine in order for this to work.

Message 5 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 02:31 PM
‎2019-10-13 02:31 PM

Re: - can' t backup remotely through ssh and rsync

> Main question here was whether it was the IP of the debian pc.
Yes, it was.

> ??? It needs to be configured as a server on the debian machine in order for this to work.

Sure? Here somebody says that if you have a correct verified ssh connection you only need rsync to be installed. Nothing more.
My ssh connection via keys works fine.

Message 6 of 12
0 Kudos
Reply
StephenB
Guru StephenB Guru
Guru
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-13 04:32 PM
‎2019-10-13 04:32 PM

Re: - can' t backup remotely through ssh and rsync


@Kalle13 wrote:


> ??? It needs to be configured as a server on the debian machine in order for this to work.

Sure? Here somebody says that if you have a correct verified ssh connection you only need rsync to be installed. Nothing more.
My ssh connection via keys works fine.


I'm not seeing that in your link, though maybe I am missing it.

 

rsync is a client-server protocol, and the NAS backup jobs are rsync clients.  The remote system needs to be set up as an rsync server.

 

If the remote system were another ReadyNAS, that would be done by enabling rsync as a protocol for the share.

Message 7 of 12
0 Kudos
Reply
Highlighted
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 06:24 AM
‎2019-10-14 06:24 AM

Re: - can' t backup remotely through ssh and rsync

> I'm not seeing that in your link, though maybe I am missing it.

Under the heading "How To Use Rsync to Sync with a Remote System". The author discribes two commands with whom you can push or pull the data via ssh to or from the remote system. There is no explanation that you must configure rsync as a server. I am also read this on other websites.

 

> rsync is a client-server protocol, and the NAS backup jobs are rsync clients. The remote system needs to be set up as an rsync server.

I only read that you have to configure rsync as a daemon if you want to run it like that (what I think you think is the server mode). There a only these two modes: the pull/push via ssh and run it as a daemon. Or may be I am understanding it all wrong.

Message 8 of 12
0 Kudos
Reply
StephenB
Guru StephenB Guru
Guru
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 07:36 AM
‎2019-10-14 07:36 AM

Re: - can' t backup remotely through ssh and rsync

I don't personally run rsync-over-ssh, as my backup NAS is local so there is no need to encrypt the backup flow.  In that scenario you do need to run rsync as a daemon/server.

 

I've always assumed that you also need to set it up that way when you are running rsync-over-ssh.  Meaning that the rsync protocol is just being tunnelled over the ssh transport by the NAS (and that Netgear is not executing remote shell commands over ssh as your links describe).    The method I am envisioning is outlined in method 3 in this old blog post: http://toddharris.net/blog/2005/10/23/rsyncing-through-an-ssh-tunnel/.

 

Though I could be wrong about this, it would be the simplest approach for Netgear - since they could simply "bolt on" the tunnelling transport to their existing code for rsync backup jobs, and not create a completely new option.  Also, AFAIK you do need to enable rsync as a service on the remote NAS when you are setting up rsync-over-ssh backups between two ReadyNAS.  If they were running remote shell commands, you wouldn't need to do that.

Message 9 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 01:00 PM
‎2019-10-14 01:00 PM

Re: - can' t backup remotely through ssh and rsync

Thank you for your long answer and your patients. I will configure rsync as a deamon on the remote maschine and than hopefully it will backup.

Best regards

 

Message 10 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 01:37 PM
‎2019-10-14 01:37 PM

Re: - can' t backup remotely through ssh and rsync

I configured rsync as a daemon but the same failure pops up.
I configured the NAS with the "rsync Server" option. All settings where accepted and I`ve got a correct connection as root to the remote mashine ("Test" botton). Is there a log file on the NAS where I can get more information? I was looking for that but I could not find any. The systemlog also showed nothing importand to me.

This is my /etc/rsyncd.conf


[backup]

# destination directory
path = /var/snap/nextcloud/common/nextcloud/data/backup/files

# hoste you allow to access
hosts allow = *

# user permission
uid = root

# group permission
gid = root

# only read directory
read only = true

 

 

Message 11 of 12
0 Kudos
Reply
Kalle13
Kalle13 Tutor
Tutor
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-14 01:54 PM
‎2019-10-14 01:54 PM

Re: - can' t backup remotely through ssh and rsync

What should I say, now it works. I found an other post about this exact same error (shame on me). If anybody has this error here you can find the solution.

This Problem is solved!

View solution in original post

Message 12 of 12
0 Kudos
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Need More Help?
  • Contact Support
  • About Us
  • Investor Relations
  • Contact us
  • Careers
  • Sign Up
  • United States
    • 中国 (汉语)
    • Deutschland (Deutsch)
    • España (Español)
    • France (Français)
    • Italia (Italiano)
    • 日本 (日本語)
    • Netherlands (Dutch)
    • Sweden (Svenska)
    • United States (English)

© 1996-2019 NETGEAR®