Server Ops 101: Closing vs Archiving
The Great Server Conundrum
In the world of server operations, there are two types of people:
- The Closers - “Just delete it and move on!”
- The Archivists - “But what if we need it someday?”
Let me tell you a story about why archiving is the superior approach.
The Tale of Two Servers
Server A (The Closer’s Approach):
- 2018: “We don’t need old logs, delete them!”
- 2019: “That security audit? We have no historical data.”
- 2020: “Compliance violation! $50,000 fine.”
Server B (The Archivist’s Approach):
- 2018: “Let’s archive these logs systematically”
- 2019: “Security audit? Here are 3 years of perfect records.”
- 2020: “Compliance award! We’re the gold standard.”
The Moral of the Story
Archiving isn’t about hoarding - it’s about intelligent preservation. With proper backup scripts (like the ones I’ve created), you get:
- Timestamped archives:
gitea_complete_backup_20240309_103015.tar.gz - Compression to save space
- Systematic organization
- Peace of mind
The Backup Scripts
I’ve created two essential scripts:
backup_gitea_working.sh- Backs up Gitea repositories and databasebackup_system_users.sh- Backs up system configuration and user data
Both use this naming pattern:
gitea_complete_backup_$(date +%Y%m%d_%H%M%S).tar.gz
Why This Matters
Because someday, when your boss asks “Why did our server crash in 2022?”, you’ll have the answer. And when the auditor asks for historical data, you’ll sleep soundly knowing it’s all safely archived.
Be an archivist. Your future self will thank you.