graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
345 stars 45 forks source link

Implement bind mounting #73

Closed manorit2001 closed 2 years ago

manorit2001 commented 2 years ago

This will avoid symlinking issues and race conditions which leave the directory in inconsistent state. The change was inspired by the implementation of @ThibaultLemaire with some minor tweaks to keep the backup functionality intact. Directories with hardlinks aren't supported anymore to keep the backup functionality intact

Possibly fixes https://github.com/graysky2/anything-sync-daemon/issues/52 https://github.com/graysky2/anything-sync-daemon/issues/37 Takes idea from https://github.com/graysky2/anything-sync-daemon/pull/46