Is there an app for DietPi that makes it possible to minimise write operations to the SD card and, in the event of a reboot, write the contents of the RAM to the SD card and restore the contents of the RAM after the reboot?

Thank you very much.

DietPi is using tmpfs for /var/log/ file systems. We have an own script to store and restore files /boot/dietpi/func/dietpi-ramlog. But nothing that could be used for other file systems and there is app available on our software catalogue.