Add todos

This commit is contained in:
kolaente 2021-08-18 21:50:15 +02:00
parent e85384d0da
commit fef951f0b4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 29 additions and 0 deletions

26
main.go
View File

@ -1,4 +1,30 @@
package main
import (
"log"
)
func main() {
c, err := getClient()
if err != nil {
log.Fatalf("Could not create client: %s", err)
}
updateFullBackupPath()
containers, err := getContainers(c)
if err != nil {
log.Fatalf("Could not get containers: %s", err)
}
storeContainers(c, containers)
err = dumpAllDatabases()
if err != nil {
// TODO: Only log errors while dumping dbs
log.Fatalf("Could not dump databases: %s", err)
}
// TODO: Cron
// TODO: Cleanup old
}

View File

@ -40,4 +40,7 @@ func storeContainers(c *client.Client, containers []types.Container) {
store[container.ID] = dumper
}
// TODO: remove old containers
}