feat: change the backup date format to make sure the backups sort properly
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1e05d4966b
commit
064d2ce66e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue