NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
julesg1
Aug 09, 2013Tutor
2-way rsync?
I have a new RD314 and an older NV+ NAS. I want to use the older NV+ as a remote backup NAS and use Rsync to accomplish this. However Rsync seems to work only in 1 direction. Is it possible to make this work in both directions?
14 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredRsync is one way.
For bi-directional syncing you would need to use something else.
If you want to backup share A on NAS A to share A on NAS B and share B on NAS B to share B on NAS A you could do this using two separate backup jobs that use Rsync. - WarrenTTutorHi, please clarify for me:
I would like only one way syncing using RSYNC or REPLICATE. From a new RN312 (OS6 which includes RSYNC) to an older Duo (which does not have RSYNC included). I wish to sync (once a day, after hours) the 10 Shares on my RN312 to the older Duo. I do not require any syncing from old Duo to the RN312. ie this is a one way process most times. Only if I must restore back from Duo to RN312, will I need a 'reverse' flow
Will this be possible? I do not wish to purchase a separate REPLICATE licence for the older Duo.
Thanks - if you have a sparc based duo, firmware 4.x, then it does not support replicate.
if both devices are on the same network, then rsync backup jobs should work fine, simply create an appropriate backup job.
to restore from the duo to the rn312, you would need to either reverse the existing backup jobs (swap source/destination) or create additional backup job(s) to pull the data from the duo to the rn12. - WarrenTTutorHi, and thanks. The Duo is Sparc based with RAIDiator 4.1.13 and I do not plan to buy a separate REPLICATE licence for the old Duo.
However, it IS on the SAME LAN, so I interpret your comment to say that RSYNC (one way) backup from new RN312 (OS6) to old Duo (Sparc) will be able to work. Is that correct?
Many thanks - StephenBGuru - Experienced UserYou really only want one-way sync, with the ability to restore the source if it is damaged. Two-way sync would only be needed if you were using both NAS as primary storage, and wanted changes to either to be reflected on the other.
It is easy to reverse source/destination of the backup jobs.
Rsync from the RN312 to the Duo will work fine. (You can run the backup jobs from either NAS). - WarrenTTutorHi Stephen,
Many thanks for that prompt advice. - rsync works in both directions.
the command takes a "source" and a "destination".
to change the direction, just exchange source and Destination
I am using root SSH to my Readynas Pro6 and have written a small Shell script that does a bi-directional sync to another Readynas Pro6
This procedure does not require a replicate license.
Currently, I am syncing "manually" by running my script, but this could also be fully automated as a "cron job".
The key to the solution is "enable root SSH" - and a bit of knowhow of the LINUX running on the Readynas.
Regards,
Max - StephenBGuru - Experienced User
Yes, but that is not enough to create 2-way sync.max_kublin wrote: ..rsync works in both directions...
For instance, if user-a deletes a file on NAS-a, then that deletion only gets propagated to NAS-b if the NAS-a->NAS-b rsync runs first. If the NAS-b->NAS-a job runs first, then the deletion is undone.
Then of course there is the case when user-a updates a file on NAS-a, and user-b updates the same file on NAS-b (but differently).
If you have a script that does a true 2-way sync, it would be good to share it. - xeltrosApprenticeThink of rsync like a process that erases everything in the destination and copies what's specified on the source to a destination folder, depending when it's executed you can't be sure of the results if you use several jobs for that. It's not that way Rsync works but the result is the same. However what you want to achieve is not a 2way sync but two different one way backups. One to save every day, and one to restore if you get a crash. This is possible with Rsync quite easily.
Rsync can be used to a folder and doesn't require an rsync server, which means that if your older NAS hasn't an Rsync server nor client, you can always mount an smb share and rsync to it from the 312 (just reverse source and destination to restore), I would advise some scripting to check if everything worked fine though. This method requires SSH access which may or may not be supported by Netgear (they say they don't support it, but I think that disclaimer is only when you do really bad stuff).
That said, the 312 can backup to an SMB share using timestamps of files and folders, that would require a modified file to be uploaded in full each time but if you do it by night this could be good enough and it's supported by GUI. - StephenBGuru - Experienced UserI agree that it is often useful to set up 1-way backups with rsync (and other protocols). If you have some control over user behavior at both ends, you can also use these backup jobs to keep two folders in sync. Though this is not a true bi-directional sync, and if you aren't very careful it will not give you the results you want.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!