3
0
mirror of https://kolaente.dev/konrad/docker-db-backup.git synced 2026-01-10 03:00:08 +01:00

feat: cleanup old backups

This commit is contained in:
kolaente
2021-12-05 13:38:36 +01:00
parent 3fc3b8cb18
commit 6929a86485
3 changed files with 44 additions and 5 deletions

View File

@@ -19,12 +19,15 @@ func main() {
storeContainers(c, containers)
err = cleanupOldBackups()
if err != nil {
log.Fatalf("Could not clean old backups: %s", err)
}
err = dumpAllDatabases(c)
if err != nil {
// TODO: Only log errors while dumping dbs
log.Fatalf("Could not dump databases: %s", err)
}
// TODO: Cron
// TODO: Cleanup old
}