I run a fedora 27 server mainly for an email service, that is mainly used for temporary email communications by a software. Almost nothing permanent need to be stored on the /var, maybe except it's still good to keep the /var/log..
I know fedora already using tmpfs for /tmp which is great! I want to further conserve my HDD by putting the /var on tmpfs too!.. But also would like to keep the /var data somewhere on the disk.
So I'd like to be able mount the /var as tmpfs - just like the /tmp is already now - but be able to also backup the /var to the disk somewhere at shutdown (or maybe even better if can backup at certain time interval), and also restore the /var from disk at boot up.
Has anybody already done this? Can you please share how this can be done?