• Post Reply Bookmark Topic Watch Topic
  • New Topic

Effective backup strategy  RSS feed

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a good and effective way to backup a Linux Server?
All my configuration files and servers are critical. Is tar cvf backup.tar / (with some excludes)
or something similar any good?
 
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a cron task that runs at 4 am daily. It backs up /etc, dumps of the databases, CVS and my working directories. For completeness, I really should be doing the /var subtree, especially the logs, but they're not critical at the moment.
According to the LSB, the /usr tree whould be immutable, but in Real LIfe, some config info ends up there. I've tried to softlink that info to reference points in /etc where possible, using the example shown by Tomcat.
Backups include not only the primary machine, but the alternate. It does a tar backup locally, then I use smbtar to pull the collection over.
The critical stuff goes onto CD or CD/RW about once a week. After years of working with tapes, I've come to the conclusion that the rotten quality of commercial tape backup programs and the almost total lack of both software and hardware portability make them of limited benefit. The only exception is that if I was backing dozens of systems nightly, I'd use a tape library backup unit, but NOT for anything I wanted to be able to read 2 years or so down the road.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!