From 064d2ce66ed4ae053904c60501fac047a16a8707 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 8 Jan 2022 12:33:50 +0100 Subject: [PATCH] feat: change the backup date format to make sure the backups sort properly --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 18d1d0c..37ea58c 100644 --- a/config.go +++ b/config.go @@ -65,7 +65,7 @@ func init() { func updateFullBackupPath() { dumpTime = time.Now() - config.fullCurrentBackupPath = config.Folder + dumpTime.Format("02-01-2006_15-04-05") + "/" + config.fullCurrentBackupPath = config.Folder + dumpTime.Format("2006-01-02_15-04-05") + "/" err := os.MkdirAll(config.fullCurrentBackupPath, 0744) if err != nil { log.Fatalf("Could not create backup folder: %s\n", err)