NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Kalle13
Oct 13, 2019Tutor
- 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...
StephenB
Oct 13, 2019Guru - Experienced User
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.
Kalle13
Oct 13, 2019Tutor
> 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.
- StephenBOct 13, 2019Guru - Experienced User
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.
- Kalle13Oct 14, 2019Tutor
> 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.
- StephenBOct 14, 2019Guru - Experienced User
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.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!