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:
7
main.go
7
main.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user