I have important files in my /home/root folder. Basically, different configuration files, such as .vimrc for vim or .gitinfo for git. But /home/root is on temp filesystem. That's why every time I reboot my router, this files id broken It would be better, to store this files on my HDD somehow. But how? Can anybody give me advice?
For now, I just copy needed files from /home/root to HDD in my "before unmount" script, and move it back to /home/root in "after mount" script. may there is more reliable way?