Mounting /var/log as a tmpfs
I have come to the conclusion that mounting /var/log as a tmpfs would be a really nice idea to save disk access and thus on battery life.
I'm not quite sure how to do this as /var/log would want syncing with the harddisk upon shutdown (ideally).
At the moment I have a 4mb tmpfs mounted as /var/log and that keeps the logs working for as long as the box is on, but then i lose them.
I guess i could run a script on shutdown to copy the logs to /var/oldlog or something... Makes for individual logs each session, and I guess I could tar and bzip them to save some space...
But is there a better way? anyone have any ideas?
Thanks in advance