From cc6b6f9226f25838324fccb1248492e69865b005 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 8 Apr 2020 01:19:10 +0000 Subject: [PATCH] make backups more and more frequent and with new lastn --- main.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index a3f8fbf..22eb2de 100755 --- a/main.go +++ b/main.go @@ -53,12 +53,11 @@ func EnqueueBackups() { return } conf := lastn.Config{ - N: 3, - Rclone: "/dev/null", - Root: realpath, - Ns: "backups", - Store: "files", - Conf: realpath + "-backups", + N: 30, + Root: realpath, + Ns: "backups", + Store: "files", + StoreAddr: realpath + "-backups", } log.Printf("backups conf: %+v", conf) lastn, err := lastn.New(conf) @@ -66,7 +65,7 @@ func EnqueueBackups() { log.Println("backups disabled:", realpath, ":", err) return } - ticker := time.NewTicker(time.Hour * 24) + ticker := time.NewTicker(time.Hour * 2) log.Println("backup initial:", err) if err := lastn.Push(); err != nil { log.Println("backup failed:", err)