/var/log to RAM disk

Started by waxhead, November 12, 2026, 11:40:37 PM

Previous topic - Next topic
Hi,

Under system->settings->miscellaneous it is possible to select "use memory file system for /var/log"
the information says that if you use /var/log as a RAM disk the log data will be lost on a reboot.

Why? It sound trivial to rsync the memory based /var/log to physical disk on a scheduled reboot/shutdown and vice versa on boot.
Yes, data will still be lost on a crash / power outage , but for planned restarts I don't see why loosing log data would be necessary.