NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ZkiiFreak
Sep 09, 2014Aspirant
RSync over SSH backup
Hi
I've just acquired a RN102 for a relative.
I'm setting it up so that my pictures are backed up to my relative's NAS (a RN102) over the Internet. I want to do this using RSync over SSH.
When configuring the backup job, which I do from my NAS (RN314) I set the up the source to a share on my own NAS. The destination is then my relative's NAS. When doing this with "standard" RSync (from my own NAS, the source NAS), the "Test Connection" seems to work fine. But when I switch to RSync over SSH, it fails. I recon this is because of a missing SSH key file. I then go to the "Advanced" tab of the backup job and select "Download SSH key file". I get a "public_ssh_key.txt" file. I assume this is the file I want to transfer to the destination NAS. But how on earth do I import this key file to the destination NAS? The guides available for RSync over SSH is for the older v4 or v5 systems...
Any takes?
Thanks in advance!
I've just acquired a RN102 for a relative.
I'm setting it up so that my pictures are backed up to my relative's NAS (a RN102) over the Internet. I want to do this using RSync over SSH.
When configuring the backup job, which I do from my NAS (RN314) I set the up the source to a share on my own NAS. The destination is then my relative's NAS. When doing this with "standard" RSync (from my own NAS, the source NAS), the "Test Connection" seems to work fine. But when I switch to RSync over SSH, it fails. I recon this is because of a missing SSH key file. I then go to the "Advanced" tab of the backup job and select "Download SSH key file". I get a "public_ssh_key.txt" file. I assume this is the file I want to transfer to the destination NAS. But how on earth do I import this key file to the destination NAS? The guides available for RSync over SSH is for the older v4 or v5 systems...
Any takes?
Thanks in advance!
14 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredThere is no option to import SSH keys at this time.
- ZkiiFreakAspirant
mdgm wrote: There is no option to import SSH keys at this time.
Then, how do I do it via an SSH session? - mdgm-ntgrNETGEAR Employee RetiredAs shown in Method 2 on http://kb.netgear.com/app/answers/detail/a_id/12263/~/setting-up-rsync-over-ssh-(x86)
You add it to the authorized_keys file. - ZkiiFreakAspirant
mdgm wrote: As shown in Method 2 on http://kb.netgear.com/app/answers/detail/a_id/12263/~/setting-up-rsync-over-ssh-(x86)
You add it to the authorized_keys file.
Thanks a bunch! Worked like a charm!
Just gotta remember to put /data/ in front of path of the destination :) - ZkiiFreakAspirantCan anyone explain to me, why I get this error when trying to do a sync? I'm pushing data from the source to the destination...
Backup Job Name: SOURCE Pictures -> DEST NAS
Backup Job Type: Incremental
Protocol: rsync+ssh
Backup Source: [ssh]/
Backup Destination: [remote:rsync+ssh]/NASNAME:/data/Backup/
Backup Start Time: Tue Sep 9 2014 17:21:38
Backup Finish Time: Tue Sep 9 2014 17:21:39
Backup Status: Fail: error in data stream. Please check remote rsync server settings.
sending incremental file list
rsync: mkdir "/root/data/Backup" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
---------------------------------------- - mdgm-ntgrNETGEAR Employee RetiredWhat version of ReadyNAS OS are you running?
Also note in the backup job if you use Rsync over SSH you don't specify credentials as well. The SSH key is enough. - ZkiiFreakAspirant
mdgm wrote: What version of ReadyNAS OS are you running?
On the source NAS which is running the backup job (RN314): 6.1.9 RC11
On the destination NAS (RN102): 6.1.8mdgm wrote: Also note in the backup job if you use Rsync over SSH you don't specify credentials as well. The SSH key is enough.
Didn't seem to make a difference :(
Backup Job Name: SOURCE Pictures -> DESTINATION NAS
Backup Job Type: Incremental
Protocol: rsync+ssh
Backup Source: [ssh]/
Backup Destination: [remote:rsync+ssh]/DESTINATION:/data/Backup/
Backup Start Time: Wed Sep 10 2014 8:07:41
Backup Finish Time: Wed Sep 10 2014 8:07:42
Backup Status: Fail: error in data stream. Please check remote rsync server settings.
sending incremental file list
rsync: mkdir "/root/data/Backup" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
---------------------------------------- - StephenBGuru - Experienced UserShouldn't the backup Source be Pictures instead of /?
Is the RN102 already on your relative's network, or is it on your local network? - ZkiiFreakAspirant
StephenB wrote: Shouldn't the backup Source be Pictures instead of /?
Is the RN102 already on your relative's network, or is it on your local network?
Don't think so, the source is a test share 'ssh' on my own RN314.
The destination NAS has not yet left my network. Want to make it work here, before going over the Internet. This is to have less complications when getting futher..
But my settings is as per the attached pictures:
http://1drv.ms/WUP894
http://1drv.ms/WUPkFs - StephenBGuru - Experienced UserOk, I see. I was going by the name of the backup job
rsync: mkdir "/root/data/Backup" failed: No such file or directory
is maybe a hint.
try /data/Backup/Pictures as the destination path. Also, make sure that path already exists.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!