4 ms·
Check out: https://github.com/azlux/log2ram https://github.com/azlux/log2ram Explanations: The script creates a /var/log mount point in RAM. So any writing of
by jftuga 8y ago
Check out: https://github.com/azlux/log2ram https://github.com/azlux/log2ram
Explanations: The script creates a /var/log mount point in RAM. So any writing of the log to the /var/log folder will not actually be written to disk (in this case to the sd card for a raspberry card) but directly to RAM. By default, every hour, the CRON will launch a synchronization of the RAM to the folder located on the physical disk. The script will also make this copy of RAM to disk in case of machine shutdown (but cannot do it in case of power failure). This way you avoid excessive writing on the SD card.
- StavrosK 8y agoThis is the best of both worlds, thanks!