What directories should i backup on a Linux server?

1

This is related to this question; however different as this is a server.

I use crashplan and grabbed /home, /root, and /etc; however upon an audit I determined that a lot of my configuration files were actually under /var/lib (bind,dhcpd,etc).

This got me wondering... what else am I missing? At this time I barley have time to ask this question, so doing a restore test is out of the question (at this time).

Andrew Burns

Posted 2012-09-24T15:46:42.823

Reputation: 223

Answers

1

Some examples (you should check where this stuff is on your distribution, the examples are for a RedHat system):

  • /var/lib/imap and /var/spool/imap if you have an IMAP server
  • /var/lib/mailman for mailman
  • /var/lib/mysql for MySQL
  • /var/log not necessary but could be useful in case of problems
  • /var/www for apache

Matteo

Posted 2012-09-24T15:46:42.823

Reputation: 6 553