feat(settings): configure migration backups (#687)

This commit is contained in:
InfinityPacer
2026-08-19 18:34:37 +08:00
committed by GitHub
parent fcc6f68519
commit 38139d95eb
5 changed files with 25 additions and 0 deletions
@@ -106,6 +106,7 @@ const SystemSettings = ref<any>({
DB_BACKUP_PATH: null,
DB_BACKUP_RETENTION_DAYS: 30,
DB_BACKUP_MAX_COUNT: 30,
DB_BACKUP_ON_UPGRADE: true,
// 媒体
RECOGNIZE_PLUGIN_FIRST: false,
MEDIA_RECOGNIZE_SHARE: true,
@@ -2537,6 +2538,14 @@ watch(currentLlmSnapshotKey, (snapshotKey, previousSnapshotKey) => {
prepend-inner-icon="mdi-backup-restore"
/>
</VCol>
<VCol cols="12">
<VSwitch
v-model="SystemSettings.Advanced.DB_BACKUP_ON_UPGRADE"
:label="t('setting.system.dbBackupOnUpgrade')"
:hint="t('setting.system.dbBackupOnUpgradeHint')"
persistent-hint
/>
</VCol>
</template>
<VCol cols="12">
<VSwitch