Skip to content

Commit fb8f4d6

Browse files
feat: backup skills directory (#8700)
* feat: include skills directory in backup * Update settings.json * Update settings.json * Update settings.json * Update settings.json * Update settings.json
1 parent eeabdb9 commit fb8f4d6

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

astrbot/core/backup/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
get_astrbot_config_path,
3030
get_astrbot_plugin_data_path,
3131
get_astrbot_plugin_path,
32+
get_astrbot_skills_path,
3233
get_astrbot_t2i_templates_path,
3334
get_astrbot_temp_path,
3435
get_astrbot_webchat_path,
@@ -78,6 +79,7 @@ def get_backup_directories() -> dict[str, str]:
7879
"t2i_templates": get_astrbot_t2i_templates_path(), # T2I 模板
7980
"webchat": get_astrbot_webchat_path(), # WebChat 数据
8081
"temp": get_astrbot_temp_path(), # 临时文件
82+
"skills": get_astrbot_skills_path(), # Skills
8183
}
8284

8385

dashboard/src/i18n/locales/en-US/features/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
},
100100
"export": {
101101
"title": "Create Backup",
102-
"description": "Export all data as a ZIP backup file, including database, knowledge base, config and attachments.",
103-
"includes": "Backup includes: Main database, Knowledge bases (metadata + vector index + documents), Config files, Attachment files",
102+
"description": "Export all data as a ZIP backup file, including database, knowledge base, config, attachments and skills.",
103+
"includes": "Backup includes: Main database, Knowledge bases (metadata + vector index + documents), Config files, Attachment files, Skills",
104104
"button": "Start Export",
105105
"processing": "Exporting...",
106106
"wait": "Please wait, packaging data...",
@@ -140,7 +140,7 @@
140140
"currentVersion": "Current Version",
141141
"backupTime": "Backup Time",
142142
"matchTitle": "✅ Version Match",
143-
"matchMessage": "Import will clear and overwrite all existing data, including:\n• Main database (conversations, settings, etc.)\n• Knowledge bases\n• Plugins and plugin data\n• Configuration files\n\nThis action cannot be undone! Do you want to continue?",
143+
"matchMessage": "Import will clear and overwrite all existing data, including:\n• Main database (conversations, settings, etc.)\n• Knowledge bases\n• Plugins and plugin data\n• Configuration files\n• Skills\n\nThis action cannot be undone! Do you want to continue?",
144144
"minorDiffTitle": "⚠️ Version Difference Warning",
145145
"minorDiffMessage": "Minor version differences are usually compatible, but there may be some data structure changes.\nImport will clear and overwrite all existing data!\n\nDo you want to continue?",
146146
"majorDiffTitle": "⛔ Cannot Import",

dashboard/src/i18n/locales/ru-RU/features/settings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"network": {
33
"title": "Сеть",
44
"githubProxy": {
@@ -99,8 +99,8 @@
9999
},
100100
"export": {
101101
"title": "Создать резервную копию",
102-
"description": "Экспорт всех данных в ZIP-архив, включая базы данных, базу знаний, конфигурации и вложения.",
103-
"includes": "Включает: основную БД, векторные индексы знаний, файлы конфигурации, медиа-вложения.",
102+
"description": "Экспорт всех данных в ZIP-архив, включая базы данных, базу знаний, конфигурации, вложения и Skills.",
103+
"includes": "Включает: основную БД, векторные индексы знаний, файлы конфигурации, медиа-вложения, Skills.",
104104
"button": "Начать экспорт",
105105
"processing": "Экспорт...",
106106
"wait": "Пожалуйста, подождите, мы упаковываем данные...",
@@ -140,7 +140,7 @@
140140
"currentVersion": "Текущая версия",
141141
"backupTime": "Дата создания",
142142
"matchTitle": "✅ Версии совпадают",
143-
"matchMessage": "Импорт перезапишет все текущие данные, включая:\n• Основную БД (чаты, настройки)\n• Базы знаний\n• Плагины и их данные\n• Файлы конфигурации\n\nЭто действие необратимо! Продолжить?",
143+
"matchMessage": "Импорт перезапишет все текущие данные, включая:\n• Основную БД (чаты, настройки)\n• Базы знаний\n• Плагины и их данные\n• Файлы конфигурации\n• Skills\n\nЭто действие необратимо! Продолжить?",
144144
"minorDiffTitle": "⚠️ Разница в минорной версии",
145145
"minorDiffMessage": "Разница в минорных версиях обычно допустима, но структура данных могла немного измениться. Все текущие данные будут удалены!\n\nПродолжить импорт?",
146146
"majorDiffTitle": "⛔ Импорт невозможен",

dashboard/src/i18n/locales/zh-CN/features/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
},
100100
"export": {
101101
"title": "创建备份",
102-
"description": "将所有数据导出为 ZIP 备份文件,包括数据库、知识库、配置和附件",
103-
"includes": "备份包含:主数据库、知识库(元数据+向量索引+文档)、配置文件、附件文件",
102+
"description": "将所有数据导出为 ZIP 备份文件,包括数据库、知识库、配置、附件和 Skills",
103+
"includes": "备份包含:主数据库、知识库(元数据+向量索引+文档)、配置文件、附件文件、Skills",
104104
"button": "开始导出",
105105
"processing": "正在导出...",
106106
"wait": "请稍候,正在打包数据...",
@@ -140,7 +140,7 @@
140140
"currentVersion": "当前版本",
141141
"backupTime": "备份时间",
142142
"matchTitle": "✅ 版本匹配",
143-
"matchMessage": "导入将会清空并覆盖现有的所有数据,包括:\n• 主数据库(对话记录、配置等)\n• 知识库数据\n• 插件及插件数据\n• 配置文件\n\n此操作不可撤销!是否确认继续?",
143+
"matchMessage": "导入将会清空并覆盖现有的所有数据,包括:\n• 主数据库(对话记录、配置等)\n• 知识库数据\n• 插件及插件数据\n• 配置文件\n• Skills\n\n此操作不可撤销!是否确认继续?",
144144
"minorDiffTitle": "⚠️ 版本差异警告",
145145
"minorDiffMessage": "小版本差异通常是兼容的,但可能存在少量数据结构变化。\n导入将会清空并覆盖现有的所有数据!\n\n是否确认继续导入?",
146146
"majorDiffTitle": "⛔ 无法导入",

0 commit comments

Comments
 (0)