fix: 解决升级过程中备份问题 (#5107)

pull/5143/head
ssongliu 6 months ago committed by GitHub
parent 8798babe07
commit b59c9ee9ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -175,7 +175,7 @@ func (u *UpgradeService) handleBackup(fileOp files.FileOp, originalDir string) e
return err return err
} }
checkPointOfWal() checkPointOfWal()
if err := handleTar(path.Join(global.CONF.System.BaseDir, "1panel/db"), originalDir, "db.tar.gz", "./1Panel.db-*"); err != nil { if err := handleTar(path.Join(global.CONF.System.BaseDir, "1panel/db"), originalDir, "db.tar.gz", "db/1Panel.db-*"); err != nil {
return err return err
} }
return nil return nil

Loading…
Cancel
Save