Compare commits

..

2 Commits

Author SHA1 Message Date
henry.chen
0a410f09f3 chore(release): 2.2.17 2025-04-22 15:18:23 +08:00
henry.chen
0fe849ae67 fix: backup file auto delete 2025-04-22 15:12:50 +08:00
3 changed files with 12 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ func backupFromMongoDB(now time.Time) error {
}
// after days delete
deleteParams := internal.DeleteParams{
Name: name,
Name: filepath.Join("blog", name), // blog/eiblog-xx.tar.gz
Days: config.Conf.BackupApp.Validity,
NoCompletePath: true,

View File

@@ -40,7 +40,7 @@ func Start(restore bool) (err error) {
for now := range t.C {
err = storage.BackupData(now)
if err != nil {
logrus.Error("timer: Start.BackupData: ", now, err)
logrus.Error("timer: Start.BackupData: ", now.Format(time.RFC3339), err)
}
}
return nil

10
pkg/internal/CHANGELOG.md Normal file
View File

@@ -0,0 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.2.17](https://github.com/eiblog/eiblog/compare/v2.2.16...v2.2.17) (2025-04-22)
### Bug Fixes
* backup file auto delete ([0fe849a](https://github.com/eiblog/eiblog/commit/0fe849ae67de36f2d249e3306ac7d098bc057070))