发布管理:状态卡 + 一个主按钮,准备动作与检查项分层次收纳,去掉重复入口。 系统设置:F02 停滞阈值接入活动配置;F03 分区保存边界;F05/F06 生产绑定分层与凭据说明; F07 备份未接主机/未知证据如实显示;F09 分区独立加载与保存后重探;F10 文案精简;F11 重置密码对话框。
This commit is contained in:
@@ -104,7 +104,7 @@ export function BackupScheduleView(props: BackupScheduleViewProps) {
|
||||
<div>
|
||||
<h2>存储与备份</h2>
|
||||
<p>
|
||||
整库逻辑备份(pg_dump 目录格式)在<strong>目标库所在主机</strong>
|
||||
整库逻辑备份(pg_dump 目录格式)在<strong>备份执行主机</strong>(同 VPC 直连 RDS)
|
||||
上本地执行:这里设置定时时间与储存天数,保存即下发到主机 cron,并可读回主机上生效的计划与最近一次结果。
|
||||
</p>
|
||||
</div>
|
||||
@@ -136,9 +136,11 @@ export function BackupScheduleView(props: BackupScheduleViewProps) {
|
||||
<dd>
|
||||
{schedule.host_next_run
|
||||
? schedule.host_next_run
|
||||
: schedule.host_schedule_enabled
|
||||
? `已配置每日 ${schedule.host_schedule_time};尚未核验下一次实际执行(不以历史下发时间推算)`
|
||||
: '未启用定时或未从主机读到计划'}
|
||||
: !schedule.host_configured
|
||||
? '未接通备份执行主机:当前计划不会执行'
|
||||
: schedule.host_schedule_enabled
|
||||
? `已配置每日 ${schedule.host_schedule_time};尚未核验下一次实际执行(不以历史下发时间推算)`
|
||||
: '未启用定时或未从主机读到计划'}
|
||||
</dd>
|
||||
<dt>最近一次运行</dt>
|
||||
<dd>
|
||||
@@ -163,7 +165,13 @@ export function BackupScheduleView(props: BackupScheduleViewProps) {
|
||||
<dt>覆盖的库</dt>
|
||||
<dd>{schedule.last_run_databases.length ? schedule.last_run_databases.join('、') : '—'}</dd>
|
||||
<dt>失败的库</dt>
|
||||
<dd>{schedule.last_run_failed_databases.length ? schedule.last_run_failed_databases.join('、') : '无'}</dd>
|
||||
<dd>
|
||||
{schedule.last_run_failed_databases.length
|
||||
? schedule.last_run_failed_databases.join('、')
|
||||
: schedule.last_run_stamp
|
||||
? '无'
|
||||
: '未知(还没有读到运行记录,不能据此判断没有失败)'}
|
||||
</dd>
|
||||
<dt>主机上生效的计划</dt>
|
||||
<dd>
|
||||
{schedule.host_schedule_enabled
|
||||
@@ -268,7 +276,7 @@ export function BackupScheduleView(props: BackupScheduleViewProps) {
|
||||
)
|
||||
}
|
||||
|
||||
// 容器:读取 + 下发 + 在途轮询。真正执行备份的是目标库所在主机(同 VPC 直连 RDS)。
|
||||
// 容器:读取 + 下发 + 在途轮询。真正执行备份的是备份执行主机(同 VPC 直连 RDS)。
|
||||
export function BackupScheduleSection() {
|
||||
const auth = useOptionalAuth()
|
||||
const isAdmin = auth?.identity?.role === 'admin'
|
||||
|
||||
Reference in New Issue
Block a user