mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
feat: enhance backup functionality with attachment options
- Added support for including attachments in backup exports. - Updated backup-related interfaces and functions to handle attachment options. - Introduced a new UI component for selecting attachment inclusion during backup operations. - Modified existing components to integrate the new attachment functionality. - Improved user feedback and error handling during backup processes.
This commit is contained in:
+14
-2
@@ -17,6 +17,7 @@ const messages: Record<Locale, Record<string, string>> = {
|
||||
import_export_under_construction: "Under construction.",
|
||||
txt_backup_export: "Export Backup",
|
||||
txt_backup_import: "Restore",
|
||||
txt_backup_include_attachments: "Include attachments",
|
||||
txt_backup_export_description: "Download a full instance backup ZIP for manual safekeeping.",
|
||||
txt_backup_import_description: "Upload a previously exported backup ZIP and restore it into this instance.",
|
||||
txt_backup_exporting: "Exporting...",
|
||||
@@ -25,7 +26,7 @@ const messages: Record<Locale, Record<string, string>> = {
|
||||
txt_backup_export_success: "Backup exported",
|
||||
txt_backup_import_success_relogin: "Backup restored. Please sign in again.",
|
||||
txt_backup_restore_success_relogin: "Backup restored. Please sign in again.",
|
||||
txt_backup_restore_skipped_summary: "{reason}. Skipped {attachments} attachment(s) and {sendFiles} Send file(s).",
|
||||
txt_backup_restore_skipped_summary: "{reason}. Skipped {attachments} attachment(s).",
|
||||
txt_backup_restore_skipped_reason_default: "Some files could not be restored",
|
||||
txt_backup_export_failed: "Backup export failed",
|
||||
txt_backup_import_failed: "Backup restore failed",
|
||||
@@ -109,6 +110,8 @@ const messages: Record<Locale, Record<string, string>> = {
|
||||
txt_backup_remote_download: "Download",
|
||||
txt_backup_remote_downloading: "Downloading...",
|
||||
txt_backup_remote_restore: "Restore",
|
||||
txt_backup_remote_restore_stage_prepare: "Preparing remote backup restore...",
|
||||
txt_backup_remote_restore_stage_replace: "Clearing current data and restoring remote backup...",
|
||||
txt_backup_remote_loading: "Loading remote backups...",
|
||||
txt_backup_remote_cached_empty: "Click Refresh to load this destination.",
|
||||
txt_backup_remote_empty: "No backup files found in this folder.",
|
||||
@@ -154,6 +157,9 @@ const messages: Record<Locale, Record<string, string>> = {
|
||||
txt_backup_retention_count: "Keep",
|
||||
txt_backup_retention_count_suffix: "items",
|
||||
txt_backup_retention_count_hint: "Leave empty to keep all backup files. New destinations default to 30.",
|
||||
txt_backup_destination_include_attachments: "Include attachments",
|
||||
txt_backup_include_attachments_help_button: "Attachment backup help",
|
||||
txt_backup_include_attachments_help: "Attachments are stored incrementally in the remote attachments folder, so later backups usually only upload new files. Deleting an attachment locally does not remove earlier remote copies. During restore, NodeWarden reads the required files from the attachments folder and skips any attachment that is no longer available.",
|
||||
txt_backup_enable_schedule: "Enable automatic daily backup",
|
||||
txt_backup_schedule_note: "The worker checks the schedule every 5 minutes and runs the backup as soon as the selected time window is reached.",
|
||||
txt_backup_schedule_disabled: "Disabled",
|
||||
@@ -629,6 +635,7 @@ const zhCNOverrides: Record<string, string> = {
|
||||
import_export_under_construction: '正在搭建中',
|
||||
txt_backup_export: '导出备份',
|
||||
txt_backup_import: '还原',
|
||||
txt_backup_include_attachments: '包含附件',
|
||||
txt_backup_export_description: '下载一个完整的实例备份 ZIP,手动保管即可。',
|
||||
txt_backup_import_description: '上传之前导出的备份 ZIP,并还原到当前实例。',
|
||||
txt_backup_exporting: '正在导出...',
|
||||
@@ -637,7 +644,7 @@ const zhCNOverrides: Record<string, string> = {
|
||||
txt_backup_export_success: '备份已导出',
|
||||
txt_backup_import_success_relogin: '备份已还原,请重新登录',
|
||||
txt_backup_restore_success_relogin: '备份已还原,请重新登录',
|
||||
txt_backup_restore_skipped_summary: '{reason},已跳过 {attachments} 个附件和 {sendFiles} 个 Send 文件',
|
||||
txt_backup_restore_skipped_summary: '{reason},已跳过 {attachments} 个附件',
|
||||
txt_backup_restore_skipped_reason_default: '部分文件无法还原',
|
||||
txt_backup_export_failed: '备份导出失败',
|
||||
txt_backup_import_failed: '备份还原失败',
|
||||
@@ -721,6 +728,8 @@ const zhCNOverrides: Record<string, string> = {
|
||||
txt_backup_remote_download: '下载',
|
||||
txt_backup_remote_downloading: '下载中...',
|
||||
txt_backup_remote_restore: '还原',
|
||||
txt_backup_remote_restore_stage_prepare: '正在读取远端备份并检查可恢复内容...',
|
||||
txt_backup_remote_restore_stage_replace: '正在清空当前数据并还原远端备份,请稍候...',
|
||||
txt_backup_remote_loading: '正在读取远端备份...',
|
||||
txt_backup_remote_cached_empty: '点击“刷新”后读取',
|
||||
txt_backup_remote_empty: '这个目录下还没有备份文件',
|
||||
@@ -766,6 +775,9 @@ const zhCNOverrides: Record<string, string> = {
|
||||
txt_backup_retention_count: '只保留',
|
||||
txt_backup_retention_count_suffix: '个',
|
||||
txt_backup_retention_count_hint: '留空表示不限,新建备份地点默认保留 30 个',
|
||||
txt_backup_destination_include_attachments: '包含附件',
|
||||
txt_backup_include_attachments_help_button: '附件备份说明',
|
||||
txt_backup_include_attachments_help: '附件会以增量方式保存在远端的 attachments 文件夹中,后续备份通常只上传新增文件。你在本地删除附件时,已经备份到远端的旧文件不会自动删除。恢复时会按需从 attachments 文件夹读取对应附件,找不到的附件会自动跳过。',
|
||||
txt_backup_enable_schedule: '启用每日自动备份',
|
||||
txt_backup_schedule_note: 'Worker 每 5 分钟检查一次计划,到达你设定的时间窗口后会尽快执行备份。',
|
||||
txt_backup_schedule_disabled: '未启用',
|
||||
|
||||
Reference in New Issue
Block a user