make backups more and more frequent and with new lastn
parent
fe6878f1a1
commit
cc6b6f9226
7
main.go
7
main.go
|
|
@ -53,12 +53,11 @@ func EnqueueBackups() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
conf := lastn.Config{
|
conf := lastn.Config{
|
||||||
N: 3,
|
N: 30,
|
||||||
Rclone: "/dev/null",
|
|
||||||
Root: realpath,
|
Root: realpath,
|
||||||
Ns: "backups",
|
Ns: "backups",
|
||||||
Store: "files",
|
Store: "files",
|
||||||
Conf: realpath + "-backups",
|
StoreAddr: realpath + "-backups",
|
||||||
}
|
}
|
||||||
log.Printf("backups conf: %+v", conf)
|
log.Printf("backups conf: %+v", conf)
|
||||||
lastn, err := lastn.New(conf)
|
lastn, err := lastn.New(conf)
|
||||||
|
|
@ -66,7 +65,7 @@ func EnqueueBackups() {
|
||||||
log.Println("backups disabled:", realpath, ":", err)
|
log.Println("backups disabled:", realpath, ":", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ticker := time.NewTicker(time.Hour * 24)
|
ticker := time.NewTicker(time.Hour * 2)
|
||||||
log.Println("backup initial:", err)
|
log.Println("backup initial:", err)
|
||||||
if err := lastn.Push(); err != nil {
|
if err := lastn.Push(); err != nil {
|
||||||
log.Println("backup failed:", err)
|
log.Println("backup failed:", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue