Hi,
I have two PC‘s connected to a Synology NAS. Is it possible to sync one PC as master and the other one as a slave?
Meaning: PC1 syncs TO the NAS. PC2 syncs FROM the NAS.
Or will the program get confused because two sync.ffs_lock files are created?
Sync NAS from two PC‘s
- Posts: 1
- Joined: 21 Dec 2022
- Posts: 2451
- Joined: 22 Aug 2012
FFS will not get confused, it will just wait until the FFS sync job that wrote the sync.ffs_lock file on the NAS finishes and removes the sync.ffs_lock file (see the link below).
But if your data-flow is only as described:
PC1 => NAS
and
NAS => PC2
There is even no need to use the sync.ffs_lock files at all.
You can turn that off by setting the LockDirectoriesDuringSync flag to "false".
But if your data-flow is only as described:
PC1 => NAS
and
NAS => PC2
There is even no need to use the sync.ffs_lock files at all.
You can turn that off by setting the LockDirectoriesDuringSync flag to "false".
- Posts: 4056
- Joined: 11 Jun 2019
Not quite true. The point of the lock is so multiple syncs from/to the same directory don't occur. If they disable the locks, there is a chance that NAS->PC2 is in the middle of a sync while PC1->NAS is copying new data to the NAS. This will lead to incorrect data. No real reason to ever turn those off unless you lack write permissions to a locationBut if your data-flow is only as described:
PC1 => NAS
and
NAS => PC2
There is even no need to use the sync.ffs_lock files at all.
You can turn that off by setting the LockDirectoriesDuringSync flag to "false". Plerry, 21 Dec 2022, 13:07
- Posts: 2451
- Joined: 22 Aug 2012
> This will lead to incorrect data.
I beg to disagree.
At worse, the PC1 => NAS sync will overwrite the NAS version of a file you have just synced NAS => PC2.
So, you may not have the latest version of that file on PC2.
But that will correct itself when you run the next NAS => PC2 sync.
I beg to disagree.
At worse, the PC1 => NAS sync will overwrite the NAS version of a file you have just synced NAS => PC2.
So, you may not have the latest version of that file on PC2.
But that will correct itself when you run the next NAS => PC2 sync.
- Posts: 4056
- Joined: 11 Jun 2019
Not having the latest version is having incorrect data> This will lead to incorrect data.
I beg to disagree.
...
So, you may not have the latest version of that file on PC2. Plerry, 22 Dec 2022, 07:55
- Posts: 2451
- Joined: 22 Aug 2012
> Not having the latest version is having incorrect data
I can relate to that.
However, in the case of topic starter that is not achieved by just keeping the LockDirectoriesDuringSync flag set to "true", but requires the two syncs to be run in the proper sequence.
I.e.: first run the PC1 => NAS sync, and only then run the NAS => PC2 sync.
I can relate to that.
However, in the case of topic starter that is not achieved by just keeping the LockDirectoriesDuringSync flag set to "true", but requires the two syncs to be run in the proper sequence.
I.e.: first run the PC1 => NAS sync, and only then run the NAS => PC2 sync.