Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Ubuntu web server. I have a backup script working that will dump mysql and svn and backup both of those along with the files in the /var/www folder and store it on S3. What else should be backed up?

Currently, I am running the following:

  • Apache
  • MySql
  • Subversion

Eventually I may play with other things.

share|improve this question
What services are you running? SVN, WWW, what else? – ghm1014 Jun 21 '11 at 17:32
up vote 2 down vote accepted

The best way to determine what you need to back-up is to walk through a scenario where your server's hard drive is no longer booting up.

What data would you require to bring it online as fast as possible?

This is a basic template (tailored to *BSD) that I use:


/etc/ipfw.rules (ip tables in your case)



If you are running other services; you should back-up those configurations as well.

share|improve this answer
Should I just backup /etc? – Mike Wills Jun 22 '11 at 13:50
You can, but in most cases it's an over kill. You can just back-up / then :) – Aleksey Korzun Jun 23 '11 at 16:07

For each service, you need to backup:

  • Apache:

    • /var/www/html (and any other place where you store this kind of files)
    • /etc/httpd (I think it's /etc/apache2 in Debian's like)
  • MySQL:

    • mysqldump and binary logs if present
    • /etc/my.cnf
    • Optional you may backup /var/lib/mysql
  • Subversion:

    • Repository directory
    • Permission files
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.