Hello, it's me again.
I read a lot about how unreliable micro SD cards are if you use your RPi to selfhost some stuff. Now I wanted to ask if some of you might have recommendations for cheap but reliable external SSDs. I did some research on Amazon but there are some brands I never heard before (Intenso, SSK, Netac, etc.) and don't know if they can be trusted.
Log2ram is a service which keeps your log files in RAM, avoids the constant writes to disk and really helps with SDcard longevity. Probably helps with SSDs too.
You can just Google it and check out the github page, no need for LLM accuracy lottery
Log2Ram is a utility designed to extend the lifespan of storage devices, particularly SD cards in Raspberry Pi systems, by reducing write operations[1][4]. Here's an overview:
How it works
Log2Ram redirects log files from being written directly to storage (/var/log) to being written to RAM instead[1]. It creates a mount point in RAM for /var/log, so all logs are written to temporary memory (tmpfs) rather than the physical disk[2].
Benefits
Extended storage life: By reducing write operations to SD cards or SSDs, Log2Ram helps prolong their lifespan[1][4].
Improved performance: Writing to RAM is faster than writing to disk, enhancing system responsiveness[4].
Transparency: Applications continue to write logs to /var/log as usual, unaware that it's now in RAM[1].
Key features
Configurable RAM allocation for logs (default 40M)[2]
Daily synchronization of RAM logs to disk via a cron job[1]
Synchronization on system shutdown to preserve logs[1]
Optional use of rsync for synchronization[2]
Compatibility with zram for space-efficient log storage[3]
While Log2Ram offers significant benefits, it's important to note that logs may be lost in case of unexpected power loss or system crashes before synchronization occurs[3].