系统设置增加备份恢复:凌晨3点自动备份,保留10天,含 env 与复盘图片。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{# 备份恢复:本地 /root/crypto_okx_backups,凌晨3点自动,保留10天 #}
|
||||
<div class="backup-settings" data-backup-root="1">
|
||||
<h2>备份恢复</h2>
|
||||
<p class="settings-subcard-desc muted">
|
||||
含 <code>.env</code>、数据库、期权复盘图片。每天北京时间 <strong>03:00</strong> 自动备份,保留最近
|
||||
<strong>10</strong> 天。目录:
|
||||
<code id="backup-dir-label">/root/crypto_okx_backups</code>
|
||||
</p>
|
||||
<div class="settings-export-links-inline settings-export-links-block" style="gap:8px;margin-bottom:12px">
|
||||
<button type="button" class="btn" id="backup-create-btn">立即备份</button>
|
||||
<button type="button" class="btn-secondary" id="backup-refresh-btn">刷新列表</button>
|
||||
<span class="muted" id="backup-status" style="font-size:.78rem"></span>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table class="or-trades-table" style="width:100%;font-size:.8rem">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>文件</th>
|
||||
<th>时间(北京)</th>
|
||||
<th>大小</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="backup-list-body">
|
||||
<tr><td colspan="4" class="muted">加载中…</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/instance_backup.js?v=1"></script>
|
||||
<script>
|
||||
(function () {
|
||||
if (window.InstanceBackup && typeof window.InstanceBackup.boot === "function") {
|
||||
window.InstanceBackup.boot();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
@@ -149,7 +149,7 @@ window.__INSTANCE_DISPLAY__ = {{ display | tojson }};
|
||||
</script>
|
||||
<script src="/static/instance_settings_prefs.js?v=24"></script>
|
||||
<script src="/static/instance_live.js?v=7"></script>
|
||||
<script src="/static/instance_embed.js?v=32"></script>
|
||||
<script src="/static/instance_embed.js?v=33"></script>
|
||||
<script src="/static/instance_mobile_nav.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
<a href="/export/key_monitors">关键位(当前)</a>
|
||||
<a href="/export/key_monitor_history">关键位历史</a>
|
||||
</div>
|
||||
{% elif tab.key == 'backup' %}
|
||||
{% include 'backup_settings_panel.html' %}
|
||||
{% elif tab.key == 'options_swap' %}
|
||||
<h2>币种兑换</h2>
|
||||
{% include 'options_settings_swap.html' %}
|
||||
|
||||
Reference in New Issue
Block a user