feat: change the backup date format to make sure the backups sort properly
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-01-08 12:33:50 +01:00
parent 1e05d4966b
commit 064d2ce66e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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)