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

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

fredbert

Moderator
NAS Support
Subscriber
4,310
1,725
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
  4. WRX560
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
3
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.

Similar threads

As suggested by @Telos within Hyper Backup you can create a data task with destination 'rsync copy (single...
Replies
5
Views
2,772
I'll add my agreement with the above to add a share of your Sony device from your PC . . . But - There...
Replies
4
Views
280
  • Question
Is it possible to setup file sharing for all file folders created with a certain name? I have a client who...
Replies
0
Views
228
Try deleting one of those "missing" folders, then recreate it (are you able to delete it?).
Replies
3
Views
388
I want, for example, one share with name "photos". All users can upload and view. But no delete. The "Joe"...
Replies
8
Views
745

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Top