Move jobs raw definition to their own namespace and the cascading fallout
This commit is contained in:
3
main.go
3
main.go
@@ -70,6 +70,9 @@ func EnqueueBackups() {
|
||||
if err := lastn.Push(); err != nil {
|
||||
log.Println("backup failed:", err)
|
||||
}
|
||||
if err := lastn.Clean(); err != nil {
|
||||
log.Println("backup clean failed:", err)
|
||||
}
|
||||
for _ = range ticker.C {
|
||||
log.Println("backing up...")
|
||||
if err := lastn.Push(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user