refactor: exclude indices directory during backup (#6753)

#### What type of PR is this?

/area core
/kind improvement
/milestone 2.20.x

#### What this PR does / why we need it:

备份时排除全文索引目录 indices,防止恢复之后因为索引文件问题无法启动。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/6443

#### Does this PR introduce a user-facing change?

```release-note
备份时排除全文索引目录 indices,防止恢复之后因为索引文件问题无法启动。
```
pull/6766/head
Ryan Wang 2024-10-04 20:48:43 +08:00 committed by GitHub
parent c941e37435
commit cf7746be6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class MigrationServiceImpl implements MigrationService, InitializingBean
"backups/**",
"db/**",
"logs/**",
"indices/**",
"docker-compose.yaml",
"docker-compose.yml",
"mysql/**",