I need to keep multiple devices in sync with the same OneDrive folder. Since the devices include laptops, they may arbitrarily disconnect from the internet or suspend, so it would need to be resilient to this (still allow me to access all my files without internet and not crash if the network drops suddenly). This includes some programming, so ideally it would have relatively low latency and support filtering away persistent local files (i.e., allowing build artifacts to exist locally indefinitely without getting synchronized up to the cloud).
I'm currently using bisync running on a systemd timer every 15 minutes on both laptops, which works reasonably well. However, it seems to hang if the laptop goes to sleep in the middle of an operation, and I'd rather it uploaded more continuously rather than only once every 15 minutes. I'm also somewhat worried about both laptops wanting to write to the same file at the same time. Are there any other recommendations on how to do this?
Mount seems interesting, but I'm not sure whether it is sufficiently robust with disconnections (maybe it would be fine with a local cache?), nor whether it allows for filtering away persistent local files in the manner described above.