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

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

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.
 
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
4,234
  • Question
Thanks again. Not sure how I missed this. Some of his clips I’ve watched 2 & 3 times. I’ll check this out...
Replies
4
Views
689
I think i have solved it. When I originally set it up it was assigned a DCHP IP address. I then added my...
Replies
5
Views
713
I'll add my agreement with the above to add a share of your Sony device from your PC . . . But - There...
Replies
4
Views
754
  • 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
853

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top