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:
> ??? 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.
Kalle13
Oct 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.
- Kalle13Oct 14, 2019Tutor
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 - Kalle13Oct 14, 2019Tutor
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
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!