Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to backup my /var/www/ folder, MySQL, and any other special documents like in the /etc/apache2/ folder.

Does anyone have any solutions for backup software? Maybe something that's Cronjob-able?

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

The best backup solution is highly dependent on your requirements. It's best to start with a backup strategy and let your strategy inform your choice of software. At minimum, you'll want to read enough to know the difference between the common backup types (incremental, differential, full).

If incremental backups aren't important, rysnc + mysqldump should work fine for your scenario. If you really need/want incrementals, Amanda or Bacula are good choices. My company has used Amanda for its backup needs for several years, and we've been very satisfied. Zmanda also provides a tool for backing up MySQL databases.

Whatever solution you do chose, though, test your backups! Don't just check to see if the backup succeeded, do a restoration (preferably from "bare metal") to verify the files are restored correctly. There's nothing worse than discovering your backup is incomplete when you've just clobbered critical files.

Also, if you're backing up a production environment, make sure at least one of your backups is an encrypted off-site backup.

Good luck!

share|improve this answer
add comment

In my opinion backuppc is the best backup solution for multiple server.

Backuppc uses a dedicated server to backup different hosts. Every hosts can be configured separately (what to backup, backup schedule, transfer method (including rsync), ...)

pre and post backup jobs can automatically be launched (e.g. dump mysql tables)

administration is done by web interface

installation is done by apt-get install backuppc

Install via the software center

share|improve this answer
add comment

Try rsync, I think it will provide all the functionality you're looking for. In order to handle MySQL you might need to write an additional cronjob to dump the database as well.

share|improve this answer
add comment

Your Answer

 
discard

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.