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
3,613
1,442
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
2
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
1,646
More like /volume1/name_of_folder/ Make sure to name the volume correctly
Replies
7
Views
320
Not gonna be a syno solution for sure. There are no out-of-the-box solutions for that. Apart from File...
Replies
4
Views
710
We would like to have this option as well! To hide shared forlder from users without the permission.
Replies
11
Views
9,330
Very useful info. Thanks to all who responded.
Replies
10
Views
4,303
Thanks for your efforts. As I've mentioned: I'm using Mint & Nemo not Ubuntu & Nautilus. I know what...
Replies
10
Views
6,320
I agree that curiousity is a good thing, but I'd prefer doing this test with a spare NAS, which I don't...
Replies
7
Views
2,547

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top