# Ipfs and ipfs-cluster used for directory synchronisation between nodes (CRDT)?

**URL:** <https://discuss.ipfs.tech/t/ipfs-and-ipfs-cluster-used-for-directory-synchronisation-between-nodes-crdt/5726>\
**Category:** IPFS Cluster\
**Created:** [June 24, 2019, 8:57pm UTC](https://discuss.ipfs.tech/t/ipfs-and-ipfs-cluster-used-for-directory-synchronisation-between-nodes-crdt/5726 "2019-06-24T20:57:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qo-op](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/qo-op/32/1773_2.png) [@qo-op](https://discuss.ipfs.tech/u/qo-op)\
**Post date:** [June 24, 2019, 8:57pm UTC](https://discuss.ipfs.tech/t/ipfs-and-ipfs-cluster-used-for-directory-synchronisation-between-nodes-crdt/5726/1 "2019-06-24T20:57:49Z")

</div>

ipfs-cluster is for pinning IPFS data across multiple nodes.

Each node detecting change on directory “./CARDS” update ipfs and ask ipfs-cluster for pinning.

```
IPFS=$(ipfs add -r -q "./CARDS/" | tail -n 1)
ipfs-cluster-ctl pin add $IPFS

```

How could I keep synchronized every nodes to be aware of the last version of it?  
It needs to know last $IPFS value to get “file” from it:

`ipfs cat ${IPFS}/file`

Is it necessary to use IPNS (with same publication key)?  
How to avoid collision if 2 nodes modify directory at the same time?  
Any other mechanism is available…

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [July 4, 2019, 2:43pm UTC](https://discuss.ipfs.tech/t/ipfs-and-ipfs-cluster-used-for-directory-synchronisation-between-nodes-crdt/5726/2 "2019-07-04T14:43:38Z")

</div>

Hello, I don’t think we have a solution for this yet. You may use IPFS MFS but you will need to pin root CIDs directly when they change.
