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 like to have a good backup from my small debian server.

Would it be a good idea to make a repository at "/"?

share|improve this question

migrated from stackoverflow.com Jul 5 '11 at 23:43

This question came from our site for professional and enthusiast programmers.

4  
Also. Version Control != Backup. Have a look at something rsync based. Duplicity perhaps. Then set it up to backup to Amazon S3. –  Tom O'Connor Jul 5 '11 at 23:57

2 Answers 2

up vote 4 down vote accepted

Not really. There are a lot of continually changing files under directories like /var/log that are not suited to using a version control tool. Also, files under /dev and /proc are not regular files and can't really be versioned in the way a VC tool would expect them too.

Backup software is a much better fit for what you're after, probably something like: tarsnap; backula or a similar package.

share|improve this answer

Git isn't a back up tool, no version control system is a substitute for a backup tool. The don't conceptually serve the same purpose, and don't functionally either. Not to mention that there are directories that constantly change and symlinks and other file-like things that aren't really files that a version control tool wouldn't even begin to understand what to do with them.

If you want to version your entire partition so that you can edit config files and such willy nilly and revert changes, you could do that with a very extensive and complex .gitignore file, accomplish that. But even that would be done better by creating localized repositories in just the locations that have the files like etc for example.

share|improve this answer

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.