On Node A:
If you run IPFS-Cluster you can modify the MFS on one side, get the hash of the root folder with:
ipfs files stat --hash /foldername
Then replace the old pin in the cluster with the new one:
ipfs-cluster-ctl pin update /ipfs/<old-cid> /ipfs/<new-cid>
This will transfer the data to all cluster members efficiently. But you have to remove the old pin afterwards - if you donāt want to keep older versions.
ipfs-cluster-ctl pin rm /ipfs/<old-cid>
On node B:
The cluster follower/cluster daemon will pin the new CID on Node B.
You can either use cluster-ctl to get the new CID or the ipfs daemon itself.
I prefer the cluster-ctl since it shows the name of the pins in the cluster:
ipfs-cluster-ctl pin ls | grep "name of your pin" | cut -d ' ' -f 1
If this outputs two items, Node B havenāt catched up yet, you can still use the new CID:
ipfs files rm -r /yourfoldername
ipfs files cp /ipfs/<new-CID> /yourfoldername
Yes, this might not look very user-friendly, if you are very UI focused and just want to run the IPFS-Cluster Daemon in the background.
You can achieve the same in the WebGUI, without any cluster.
Node A: Unpin the folder, cange the folder content, copy the CID, transfer the CID to Node B.
Node B: Unpin the folder, remove the folder, hit āadd from IPFSā, enter the new CID, rename it how you want the folder to be named, hit pin-add.
This will transfer all data from Node A to Node B manually.