I have a program running on a Raspberry Pi 3 (Rasbian Jesse) that drops files in a directory called /mount-point
. At bootup, I am mounting a windows share called /incoming
to /mount-point
. There is a windows program that is processing these files as they are dropped into the share.
mount -t cifs -o username=<share user>,password=<share password> //<Win-IP>/c/incoming /home/pi/mount-point
The problem occurs if the network goes down. If the network is down, the linux program continues to drop files into the /mount-point
directory. When the network comes back up, the windows share is remounted and any files currently in /mount-point
get mounted over and disappear.
Is there a way to "merge mount" the windows share so that any files currently in /mount-point
are not hidden and appear in /incoming
on windows?