perf: account backup

pull/15084/head
feng 2025-03-20 13:24:14 +08:00 committed by feng626
parent 2455afc2d2
commit 69cc47e0cb
8 changed files with 3108 additions and 2338 deletions

View File

@ -209,6 +209,7 @@ class AccountAssetSerializer(serializers.ModelSerializer):
class Meta:
model = Asset
fields = ['id', 'name', 'address', 'type', 'category', 'platform', 'auto_config']
exclude_backup_fields = ['platform', 'auto_config']
def to_internal_value(self, data):
if isinstance(data, dict):
@ -461,8 +462,7 @@ class AccountSecretSerializer(SecretReadableMixin, AccountSerializer):
'spec_info': {'label': _('Spec info')},
}
exclude_backup_fields = [
'passphrase', 'push_now', 'params',
'spec_info', 'platform', 'auto_config'
'passphrase', 'push_now', 'params', 'spec_info'
]

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-03-19 10:58+0800\n"
"POT-Creation-Date: 2025-03-20 11:52+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -29,7 +29,7 @@ msgstr ""
msgid "Account not found"
msgstr ""
#: accounts/api/automations/base.py:82 tickets/api/ticket.py:132
#: accounts/api/automations/base.py:83 tickets/api/ticket.py:132
msgid "The parameter 'action' must be [{}]"
msgstr ""
@ -37,15 +37,15 @@ msgstr ""
msgid "The account key will be split into two parts and sent"
msgstr ""
#: accounts/automations/backup_account/handlers.py:129
#: accounts/automations/backup_account/handlers.py:131
msgid "Number of backup accounts"
msgstr ""
#: accounts/automations/backup_account/handlers.py:150
#: accounts/automations/backup_account/handlers.py:152
msgid "Generating asset related backup information files"
msgstr ""
#: accounts/automations/backup_account/handlers.py:175
#: accounts/automations/backup_account/handlers.py:177
#: accounts/automations/backup_account/manager.py:26
#: accounts/automations/change_secret/manager.py:81
#: accounts/automations/push_account/manager.py:62
@ -56,31 +56,31 @@ msgstr ""
msgid "Duration"
msgstr ""
#: accounts/automations/backup_account/handlers.py:176
#: accounts/automations/backup_account/handlers.py:178
msgid "Backup file creation completed"
msgstr ""
#: accounts/automations/backup_account/handlers.py:184
#: accounts/automations/backup_account/handlers.py:186
msgid "Start sending backup emails"
msgstr ""
#: accounts/automations/backup_account/handlers.py:211
#: accounts/automations/backup_account/handlers.py:213
msgid "Encrypting files using encryption password"
msgstr ""
#: accounts/automations/backup_account/handlers.py:221
#: accounts/automations/backup_account/handlers.py:223
msgid "The backup file will be sent to"
msgstr ""
#: accounts/automations/backup_account/handlers.py:244
#: accounts/automations/backup_account/handlers.py:246
msgid "The backup task has no assigned sftp server"
msgstr ""
#: accounts/automations/backup_account/handlers.py:265
#: accounts/automations/backup_account/handlers.py:267
msgid "The backup task has no assigned recipient"
msgstr ""
#: accounts/automations/backup_account/handlers.py:289
#: accounts/automations/backup_account/handlers.py:290
msgid "Plan start"
msgstr ""
@ -410,7 +410,7 @@ msgid ""
"Vault."
msgstr ""
#: accounts/filters.py:189
#: accounts/filters.py:194
msgid "Enter a valid UUID."
msgstr ""
@ -440,7 +440,7 @@ msgstr ""
#: accounts/serializers/automations/change_secret.py:113
#: accounts/serializers/automations/change_secret.py:145
#: accounts/serializers/automations/check_account.py:33
#: accounts/serializers/automations/gather_account.py:47
#: accounts/serializers/automations/gather_account.py:48
#: accounts/templates/accounts/asset_account_change_info.html:7
#: accounts/templates/accounts/change_secret_failed_info.html:11
#: accounts/templates/accounts/change_secret_report.html:79
@ -981,7 +981,7 @@ msgid "Verify asset account"
msgstr ""
#: accounts/models/base.py:37 accounts/models/base.py:66
#: accounts/serializers/account/account.py:467
#: accounts/serializers/account/account.py:470
#: accounts/serializers/account/base.py:17
#: accounts/serializers/automations/change_secret.py:48
#: authentication/serializers/connect_token_secret.py:42
@ -1231,14 +1231,14 @@ msgstr ""
msgid "Spec info"
msgstr ""
#: accounts/serializers/account/account.py:468
#: accounts/serializers/account/account.py:471
#: authentication/serializers/connect_token_secret.py:160
#: authentication/templates/authentication/_access_key_modal.html:30
#: perms/models/perm_node.py:21 users/serializers/group.py:33
msgid "ID"
msgstr ""
#: accounts/serializers/account/account.py:478 acls/serializers/base.py:123
#: accounts/serializers/account/account.py:481 acls/serializers/base.py:123
#: acls/templates/acls/asset_login_reminder.html:8
#: acls/templates/acls/user_login_reminder.html:8
#: assets/models/cmd_filter.py:24 assets/models/label.py:16 audits/models.py:55
@ -1260,7 +1260,7 @@ msgstr ""
msgid "User"
msgstr ""
#: accounts/serializers/account/account.py:479
#: accounts/serializers/account/account.py:482
#: authentication/templates/authentication/_access_key_modal.html:33
#: terminal/notifications.py:159 terminal/notifications.py:219
msgid "Date"
@ -1428,7 +1428,7 @@ msgstr ""
msgid "Invalid engine id"
msgstr ""
#: accounts/serializers/automations/gather_account.py:30
#: accounts/serializers/automations/gather_account.py:31
msgid "Whether to check the risk of the gathered accounts."
msgstr ""
@ -3764,6 +3764,8 @@ msgid ""
"{error}, You can also try {times_try} times (The account will be temporarily "
"locked for {block_time} minutes)"
msgstr ""
"{error} You can also try {times_try} times (The account will be temporarily "
"locked for {block_time} minutes)"
#: authentication/errors/const.py:63
msgid "MFA required"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: JumpServer 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-03-19 15:14+0800\n"
"POT-Creation-Date: 2025-03-20 11:52+0800\n"
"PO-Revision-Date: 2021-05-20 10:54+0800\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\n"
@ -28,7 +28,7 @@ msgstr "账号已存在"
msgid "Account not found"
msgstr "账号未找到"
#: accounts/api/automations/base.py:82 tickets/api/ticket.py:132
#: accounts/api/automations/base.py:83 tickets/api/ticket.py:132
msgid "The parameter 'action' must be [{}]"
msgstr "参数 'action' 必须是 [{}]"
@ -36,15 +36,15 @@ msgstr "参数 'action' 必须是 [{}]"
msgid "The account key will be split into two parts and sent"
msgstr "账号的密钥将被拆分成前后两部分发送"
#: accounts/automations/backup_account/handlers.py:129
#: accounts/automations/backup_account/handlers.py:131
msgid "Number of backup accounts"
msgstr "备份账号数量"
#: accounts/automations/backup_account/handlers.py:150
#: accounts/automations/backup_account/handlers.py:152
msgid "Generating asset related backup information files"
msgstr "生成资产相关备份信息文件"
#: accounts/automations/backup_account/handlers.py:175
#: accounts/automations/backup_account/handlers.py:177
#: accounts/automations/backup_account/manager.py:26
#: accounts/automations/change_secret/manager.py:81
#: accounts/automations/push_account/manager.py:62
@ -55,31 +55,31 @@ msgstr "生成资产相关备份信息文件"
msgid "Duration"
msgstr "花费时间"
#: accounts/automations/backup_account/handlers.py:176
#: accounts/automations/backup_account/handlers.py:178
msgid "Backup file creation completed"
msgstr "创建备份文件完成"
#: accounts/automations/backup_account/handlers.py:184
#: accounts/automations/backup_account/handlers.py:186
msgid "Start sending backup emails"
msgstr "开始发送备份电子邮件"
#: accounts/automations/backup_account/handlers.py:211
#: accounts/automations/backup_account/handlers.py:213
msgid "Encrypting files using encryption password"
msgstr "使用加密密码对文件进行加密中"
#: accounts/automations/backup_account/handlers.py:221
#: accounts/automations/backup_account/handlers.py:223
msgid "The backup file will be sent to"
msgstr "备份文件将被发送至"
#: accounts/automations/backup_account/handlers.py:244
#: accounts/automations/backup_account/handlers.py:246
msgid "The backup task has no assigned sftp server"
msgstr "该备份任务未分配sftp服务器"
#: accounts/automations/backup_account/handlers.py:265
#: accounts/automations/backup_account/handlers.py:267
msgid "The backup task has no assigned recipient"
msgstr "备份任务没有指定收件人"
#: accounts/automations/backup_account/handlers.py:289
#: accounts/automations/backup_account/handlers.py:290
msgid "Plan start"
msgstr "任务开始"
@ -136,8 +136,6 @@ msgstr ">>> 开始执行测试网关账号可连接性任务"
#: users/templates/users/_msg_user_created.html:13
#: users/templates/users/user_password_verify.html:18
#: xpack/plugins/cloud/serializers/account_attrs.py:28
#: xpack/plugins/cloud/serializers/account_attrs.py:90
#: xpack/plugins/cloud/serializers/account_attrs.py:97
msgid "Password"
msgstr "密码"
@ -414,7 +412,7 @@ msgid ""
"Vault."
msgstr "Vault 操作失败,请重试,或者检查 Vault 上的账号信息。"
#: accounts/filters.py:189
#: accounts/filters.py:194
msgid "Enter a valid UUID."
msgstr ""
@ -875,8 +873,6 @@ msgstr "重复密码"
#: users/forms/profile.py:117 users/models/user/__init__.py:59
#: users/templates/users/_msg_user_created.html:12
#: xpack/plugins/cloud/serializers/account_attrs.py:26
#: xpack/plugins/cloud/serializers/account_attrs.py:88
#: xpack/plugins/cloud/serializers/account_attrs.py:95
msgid "Username"
msgstr "用户名"
@ -987,7 +983,7 @@ msgid "Verify asset account"
msgstr "账号验证"
#: accounts/models/base.py:37 accounts/models/base.py:66
#: accounts/serializers/account/account.py:467
#: accounts/serializers/account/account.py:470
#: accounts/serializers/account/base.py:17
#: accounts/serializers/automations/change_secret.py:48
#: authentication/serializers/connect_token_secret.py:42
@ -1248,14 +1244,14 @@ msgstr "账号已存在"
msgid "Spec info"
msgstr "特殊信息"
#: accounts/serializers/account/account.py:468
#: accounts/serializers/account/account.py:471
#: authentication/serializers/connect_token_secret.py:160
#: authentication/templates/authentication/_access_key_modal.html:30
#: perms/models/perm_node.py:21 users/serializers/group.py:33
msgid "ID"
msgstr "ID"
#: accounts/serializers/account/account.py:478 acls/serializers/base.py:123
#: accounts/serializers/account/account.py:481 acls/serializers/base.py:123
#: acls/templates/acls/asset_login_reminder.html:8
#: acls/templates/acls/user_login_reminder.html:8
#: assets/models/cmd_filter.py:24 assets/models/label.py:16 audits/models.py:55
@ -1277,7 +1273,7 @@ msgstr "ID"
msgid "User"
msgstr "用户"
#: accounts/serializers/account/account.py:479
#: accounts/serializers/account/account.py:482
#: authentication/templates/authentication/_access_key_modal.html:33
#: terminal/notifications.py:159 terminal/notifications.py:219
msgid "Date"
@ -1918,8 +1914,8 @@ msgid ""
"10.1.1.1-10.1.1.20, 2001:db8:2de::e13, 2001:db8:1a:1110::/64 (Domain name "
"support)"
msgstr ""
"* 表示匹配所有。例如: 192.168.10.1, 192.168.1.0/24, 10.1.1.1-10.1.1.20, "
"2001:db8:2de::e13, 2001:db8:1a:1110::/64 (支持网域)"
"* 表示匹配所有。例如: 192.168.10.1, 192.168.1.0/24, 10.1.1.1-10.1.1.20, 2001:"
"db8:2de::e13, 2001:db8:1a:1110::/64 (支持网域)"
#: acls/serializers/base.py:41 assets/serializers/asset/host.py:19
msgid "IP/Host"
@ -1947,8 +1943,8 @@ msgid ""
"With * indicating a match all. Such as: 192.168.10.1, 192.168.1.0/24, "
"10.1.1.1-10.1.1.20, 2001:db8:2de::e13, 2001:db8:1a:1110::/64 "
msgstr ""
"* 表示匹配所有。例如: 192.168.10.1, 192.168.1.0/24, 10.1.1.1-10.1.1.20, "
"2001:db8:2de::e13, 2001:db8:1a:1110::/64"
"* 表示匹配所有。例如: 192.168.10.1, 192.168.1.0/24, 10.1.1.1-10.1.1.20, 2001:"
"db8:2de::e13, 2001:db8:1a:1110::/64"
#: acls/serializers/rules/rules.py:33
#: authentication/templates/authentication/_msg_oauth_bind.html:12
@ -2171,8 +2167,7 @@ msgstr "云服务"
msgid "Web"
msgstr "Web"
#: assets/const/category.py:15 common/sdk/sms/custom_file.py:47
#: common/sdk/sms/endpoint.py:20
#: assets/const/category.py:15 common/sdk/sms/endpoint.py:20
msgid "Custom type"
msgstr "自定义类型"
@ -2864,7 +2859,7 @@ msgstr "端口超出范围 (0-65535)"
msgid "Protocol is required: {}"
msgstr "协议是必填的: {}"
#: assets/serializers/asset/common.py:350 labels/api.py:107
#: assets/serializers/asset/common.py:350
msgid "Invalid data"
msgstr "无效的数据"
@ -3837,7 +3832,7 @@ msgid ""
"{error}, You can also try {times_try} times (The account will be temporarily "
"locked for {block_time} minutes)"
msgstr ""
"{error}您还可以尝试 {times_try} 次 (账号将被临时锁定 {block_time} 分钟)"
"{error} 您还可以尝试 {times_try} 次 (账号将被临时锁定 {block_time} 分钟)"
#: authentication/errors/const.py:63
msgid "MFA required"
@ -4968,10 +4963,6 @@ msgstr "自定义短信文件无效"
msgid "SMS sending failed[%s]: %s"
msgstr "短信发送失败[%s]: %s"
#: common/sdk/sms/custom_file.py:47 common/serializers/common.py:98
msgid "File"
msgstr "文件"
#: common/sdk/sms/endpoint.py:16
msgid "Alibaba cloud"
msgstr "阿里云"
@ -5016,6 +5007,10 @@ msgstr "请在 {} 秒后发送"
msgid "Children"
msgstr "节点"
#: common/serializers/common.py:98
msgid "File"
msgstr "文件"
#: common/serializers/fields.py:139
msgid "Invalid data type"
msgstr "无效的数据"
@ -5136,10 +5131,6 @@ msgstr "你的账号已创建成功"
msgid "JumpServer - An open-source PAM"
msgstr "JumpServer 开源堡垒机"
#: jumpserver/context_processor.py:28
msgid "FIT2CLOUD"
msgstr ""
#: jumpserver/views/celery_flower.py:22
msgid "<h1>Flower service unavailable, check it</h1>"
msgstr "Flower 服务不可用,请检查"
@ -7141,7 +7132,7 @@ msgstr "租户 ID"
#: settings/serializers/feature.py:110 terminal/serializers/storage.py:68
#: xpack/plugins/cloud/manager.py:111 xpack/plugins/cloud/manager.py:116
#: xpack/plugins/cloud/manager.py:153 xpack/plugins/cloud/models.py:287
#: xpack/plugins/cloud/models.py:287
msgid "Region"
msgstr "地域"
@ -8088,7 +8079,7 @@ msgstr "会话不存在: {}"
msgid "Session is finished or the protocol not supported"
msgstr "会话已经完成或协议不支持"
#: terminal/api/session/session.py:345 tickets/api/ticket.py:140
#: terminal/api/session/session.py:345
msgid "User does not have permission"
msgstr "用户没有权限"
@ -8632,9 +8623,9 @@ msgid ""
"days. <a href=\"https://learn.microsoft.com/en-us/windows-server/remote/"
"remote-desktop-services/rds-client-access-license\">Detail</a>"
msgstr ""
"如果不存在RDS 将处于试用模式,试用期为 120 天。<a href='https://"
"learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-"
"client-access-license'>详情</a>"
"如果不存在RDS 将处于试用模式,试用期为 120 天。<a href='https://learn."
"microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-client-"
"access-license'>详情</a>"
#: terminal/serializers/applet_host.py:55
msgid "RDS License Server"
@ -8868,8 +8859,8 @@ msgid ""
"If there are multiple hosts, use a comma (,) to separate them. <br>(For "
"example: http://www.jumpserver.a.com:9100, http://www.jumpserver.b.com:9100)"
msgstr ""
"如果有多个主机,请用逗号 (,) 分隔它们。<br>例如http://"
"www.jumpserver.a.com:9100http://www.jumpserver.b.com:9100"
"如果有多个主机,请用逗号 (,) 分隔它们。<br>例如http://www.jumpserver.a."
"com:9100http://www.jumpserver.b.com:9100"
#: terminal/serializers/storage.py:199
msgid "Index by date"
@ -10482,10 +10473,6 @@ msgstr "同步地区"
msgid "Get instances of region \"%s\" error, error: %s"
msgstr "获取区域 \"%s\" 的实例错误,错误:%s"
#: xpack/plugins/cloud/manager.py:153 xpack/plugins/cloud/models.py:284
msgid "Instance"
msgstr "实例"
#: xpack/plugins/cloud/manager.py:179
#, python-format
msgid "Failed to synchronize the instance \"%s\""
@ -10628,6 +10615,10 @@ msgstr "同步任务"
msgid "Sync instance task history"
msgstr "同步实例任务历史"
#: xpack/plugins/cloud/models.py:284
msgid "Instance"
msgstr "实例"
#: xpack/plugins/cloud/models.py:301
msgid "Sync instance detail"
msgstr "同步实例详情"
@ -10932,12 +10923,6 @@ msgstr "订阅 ID"
msgid "Auto node classification"
msgstr "自动节点分类"
#: xpack/plugins/cloud/serializers/account_attrs.py:93
#, fuzzy
#| msgid "Container name"
msgid "domain_name"
msgstr "容器名称"
#: xpack/plugins/cloud/serializers/account_attrs.py:99
#: xpack/plugins/cloud/serializers/account_attrs.py:103
#: xpack/plugins/cloud/serializers/account_attrs.py:127
@ -11105,6 +11090,11 @@ msgstr "许可证导入成功"
msgid "Invalid license"
msgstr "许可证无效"
#, fuzzy
#~| msgid "Container name"
#~ msgid "domain_name"
#~ msgstr "容器名称"
#~ msgid "Password error"
#~ msgstr "密码错误"

File diff suppressed because it is too large Load Diff