NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Yorg
Feb 27, 2013Aspirant
rsyn with SSH pushed from another offsite NAS
Hi, I finally got the plain vanilla rsync to work. Now I need to get SSH involved. I am pushing data from a qnap at our office over the internet to be backed up on our ReadyNAS Ultra 2 here at home...
summertea
Apr 02, 2013Aspirant
I am using a competitor's NAS product. On all of their models SSH and rsync are available. As all these NAS devices, no matter which brand, run on some Linux-derivative, I guess my experience should be transferable to your problem.
Concerning SSH port 22, I was pretty shocked when I opened it, within hours, failed login attempts started to mushroom and the NAS blocked more and more IPs from which these login attempts originated. I traced the IPs back and most of these were located in China, Russia or some Arab countries. Can't tell if the people controlling these computers were in fact located there, however, there seems to be a security issue emanating from certain regions.
My solution and what remedied the problem in respect to SSH break in attempts was that I simply changed the SSH port to a different/non-standard one. A year passed since I made that change and ever since my NAS did not block a single IP although it is running 24/7 and reachable via a dynamic host name.
Concerning your backup problem, I wrote a script exactly for the purpose of doing offsite backups over the internet with rsync and SSH. As network disruptions can be a serious issue for rsync, my script basically restarts rsync, whenever it fails to complete the synchronization. Upon completion the script either sends an email or displays a growl notification on my Mac's desktop. Each backup job is stored in a small configuration file which is fed to the script (this is also helpful in that you don't have to learn about the different rsync parameters). It is possible to set backup intervals, split up big backup tasks into smaller folder jobs and also to create a backup history by transferring the backup into a dated folder upon each run.
By adding the backup jobs to cron, they run in the background according to a predefined schedule without needing any further user attention.
I would like to share this script, which I called Space Machine :wink:, on my blog: http://goo.gl/d3VKd
I hope this is helpful. If you like the script, I would be happy if you could leave a short post on my site.
Concerning SSH port 22, I was pretty shocked when I opened it, within hours, failed login attempts started to mushroom and the NAS blocked more and more IPs from which these login attempts originated. I traced the IPs back and most of these were located in China, Russia or some Arab countries. Can't tell if the people controlling these computers were in fact located there, however, there seems to be a security issue emanating from certain regions.
My solution and what remedied the problem in respect to SSH break in attempts was that I simply changed the SSH port to a different/non-standard one. A year passed since I made that change and ever since my NAS did not block a single IP although it is running 24/7 and reachable via a dynamic host name.
Concerning your backup problem, I wrote a script exactly for the purpose of doing offsite backups over the internet with rsync and SSH. As network disruptions can be a serious issue for rsync, my script basically restarts rsync, whenever it fails to complete the synchronization. Upon completion the script either sends an email or displays a growl notification on my Mac's desktop. Each backup job is stored in a small configuration file which is fed to the script (this is also helpful in that you don't have to learn about the different rsync parameters). It is possible to set backup intervals, split up big backup tasks into smaller folder jobs and also to create a backup history by transferring the backup into a dated folder upon each run.
By adding the backup jobs to cron, they run in the background according to a predefined schedule without needing any further user attention.
I would like to share this script, which I called Space Machine :wink:, on my blog: http://goo.gl/d3VKd
I hope this is helpful. If you like the script, I would be happy if you could leave a short post on my site.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!