How do I keep two folders on the same NAS synced?

Currently reading
How do I keep two folders on the same NAS synced?

Telos

Subscriber
1,316
440
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
Sync is not backup. Consider too... what if NAS fails? Why not external USB drive?
 
1,753
739
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
As @Telos said. Backup. Use HB. You’ll have versioning too. Saved me a few times.
 

fredbert

Moderator
NAS Support
Subscriber
1,944
787
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
i thought sync is like a real time back-up.
Sync isn't backup. Backup is for recovering data when the primary/main instance fails or gets deleted. Sync is for availability of dat, e.g. offline.

Drive does sync but also has historical versioning. If you backup the Drive application and data folders using Hyper Backup to another device then you have sync'ed data with recent changes to rollback to plus longer term backup not on the original disk.
 
1
1
NAS
+
Mobile operating system
  1. Android
Hi

You can sync 2 folders of the same NAS using the "TASK SCHEDULER" of DSM => see attached picture

You create a task that executes the linux Shell command here below, and define when this task is executed.
This is a pseudo realtime sync, since it runs on a periodical basis (I have a sync every 10 min)

Command :

rsync -a "/volume1/sharedfolder1/.../folder1/" "/volume1/sharedfolder2/.../folder2"

This command Synchronizes the CONTENT of folder1 with folder2
Any change made in the content of folder1 is reproduced in folder2 and vice-versa

REM
===
* The "..." can be replaced by any folder path going through your folder structure, you must always start with a shared folder at the root of your volume (here "sharedfolder1")

* Be aware of "/" at the end of "/volume1/sharedfolder1/.../folder1/", and not present at the end of "/volume1/sharedfolder2/.../folder2". This indicates that you sync THE CONTENT OF folder1.

Sync Command.jpg
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Top