Description
The gbctl backup command introduces two critical gaps for long-term deployments:
- No Actual Volume Backup: Despite the help menu stating "Backup database and volumes",
cmd_backup only dumps PostgreSQL. Docker volumes (mlmodels, static_content, logs) are ignored; only their names are exported to a text file.
- Missing Backup Retention: Running
./gbctl backup via cron creates a new .sql.gz dump every time, potentially filling up the host's disk space over time. There is currently no built-in cleanup or retention policy to prune old backups.
Proposed Solution
- Either we can simply update
print_help() function or should we implement backup of volumes (which I dont think we need).
- Add Retention Flag: Introduce a
--keep-days <N> flag to automatically prune old backups (e.g., find backups/ -type f -mtime +N -delete).
Description
The
gbctl backupcommand introduces two critical gaps for long-term deployments:cmd_backuponly dumps PostgreSQL. Docker volumes (mlmodels,static_content, logs) are ignored; only their names are exported to a text file../gbctl backupvia cron creates a new.sql.gzdump every time, potentially filling up the host's disk space over time. There is currently no built-in cleanup or retention policy to prune old backups.Proposed Solution
print_help()function or should we implement backup of volumes (which I dont think we need).--keep-days <N>flag to automatically prune old backups (e.g.,find backups/ -type f -mtime +N -delete).