Is there a way to link or mount a directory such that writing to the target goes to one destination, but reading from it grabs from another?
3
votes
1
answer
77
views
In my case, there are two NASes that I want some very large files written to, one with a fast connection and small storage, and another with a slower connection but large storage (let’s call them NAS A and NAS B respectively). I would like to write the files to the faster NAS A and then let NAS A transfer the files to NAS B in the background while the client computer can go to sleep. After the files are sent to NAS B, NAS A can delete the local copy to save space. I do not want to keep a backup of the files on NAS A as I’m basically using it as a write cache for NAS B.
However, the program that writes the files from the client needs to be able to read all the files that have been sent to NAS B every time, and so far I haven’t found a way to separately specify a write and read path in the program itself so these two situations have to point to the same path.
Is there thus a way to expose a single path but allow the writes to go to one destination and the reads to pull from another?
For additional context, the client machine is running Windows (for now anyway) and NAS A is a Raspberry Pi. If possible, I’d like the client to just mount a path from NAS A and let NAS A handle the linking.
I have some workaround alternatives in mind but am curious if this is possible to do, or if there are other alternatives I haven’t thought of yet.
Asked by Owlguy
(33 rep)
Aug 8, 2025, 01:36 AM
Last activity: Aug 8, 2025, 06:51 PM
Last activity: Aug 8, 2025, 06:51 PM