Add todos
This commit is contained in:
parent
e85384d0da
commit
fef951f0b4
26
main.go
26
main.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue