The article recounts how losing 10,000 vital files in 2019 ultimately benefited Gama, an educational content-sharing platform.
Initially launched in Iran in 2014, Gama expanded globally and introduced Gamatrain.com, focusing on internationally recognized education systems.
A flawed backup strategy using GlusterFS led to a catastrophic event, causing missing files and errors on their platform.
Despite attempts to recover files from an old backup HDD, changes to the directory structure rendered the backup useless.
The incident prompted Gama to overhaul their file storage approach, leading to the development of GFK (Gama File Keeper) for effective file management and retrieval.
To enhance their backup strategy, Gama introduced Backapp, a three-layer backup system with Warm, Cold, and Offline layers, along with regular database backups.
The backup system implements a six-month gradual deletion process across all layers to ensure file restoration before permanent deletion.
Backapp was built using Golang, Bash scripts, SQLite, Rsync Protocol, and Grafana XtraDB Backup to automate backup processes efficiently.
Implementing these improvements, though challenging, proved instrumental in safeguarding their new venture, Gamatrain.com, from potential disasters.
The article highlights the importance of robust backup strategies and the consequences of relying solely on one system, emphasizing the need for comprehensive data protection.