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

/dev/shm or /tmp for volatile. #58

Closed yutayu closed 3 years ago

yutayu commented 3 years ago

https://wiki.archlinux.org/index.php/Anything-sync-daemon Note: The default value of "/dev/shm" should work just fine for the VOLATILE setting. Be aware that using software such as bleachbit with asd can be dangerous since bleachbit likes to remove files stored in /tmp. This is why a value of /dev/shm is recommended.

But now default is in /tmp.

yutayu commented 3 years ago

https://github.com/graysky2/anything-sync-daemon/blob/master/common/asd.conf Define where data will reside in tmpfs. This location must be mounted to tmpfs and MUST be writable and executable. If using bleachbit, do NOT invoke it with the '--clean system.tmp' switch or you will remove a key dot file (.foo) from /tmp that asd needs to keep track of sync status.

Note that using a value of '/dev/shm' can cause problems with systemd's NAMESPACE spawning only when users enable the overlayfs option.

VOLATILE="/tmp"