Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have some linux servers mostly Centos Web hosting servers (Cpanel, Directadmin, kloxo).

I have some backup systems implemented, but I like to keep a local backup on my home computer. This will be used as a last resort backup.

What I do is:

1) Export mysql databases to sql files (mysqldump). 2) rsync all files exept (/) system, temporary and unessesary files to a folder in a linux system (rsync -av --delete).

I know it's not the best way to backup, but I want something fast and easy.

In case of something bad happens and for some reason my other backup solutions fail, is this enough to restore the full system ? (Reinstall the same linux system and rsync the files back).

Do you see any serious problem with that ?

Thanks

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I like the backup solution. One change I would make though, is to use something like etckeeper to backup the system configuration. This will give you the benefit of both backup, and change management...which also gives you the ability to step though various old configurations during the restore if you need to for some reason.

share|improve this answer
    
Good idea. Thanks for the info –  user146526 Dec 20 '12 at 23:26
add comment

That should be fine; it's pretty much how I do my primary backups for my personal servers.

Food for thought though: You can always exclude files at restore time, you can't backup files at restore time.

IOW, backup more than you think you need. For example, I'm never confident listing specific files in /etc so I just backup the entire /etc path to make sure I have everything I need. Of course, you have to balance this is bandwidth and disk space usage on the backup target, but it might just say your day eventually.

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.