Remove PostgreSQL support and standardize on SQLite only.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -575,18 +575,17 @@
|
||||
{{ restore_status.message }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<p class="hint" style="margin:.5rem 0 0">备份含 <code>futures.db</code> / <code>postgres_dump.sql</code>、<code>uploads/</code>、<code>.env</code>。网页恢复目标:<code>{{ backup_restore_dir }}</code>。</p>
|
||||
<p class="hint" style="margin:.5rem 0 0">备份含 <code>futures.db</code>、<code>uploads/</code>、<code>.env</code>。网页恢复目标:<code>{{ backup_restore_dir }}</code>。</p>
|
||||
|
||||
{% if backup_items %}
|
||||
<table class="settings-backup-table" id="backup-items-table">
|
||||
<thead>
|
||||
<tr><th>文件名</th><th>类型</th><th>.env</th><th>大小</th><th>时间</th><th>操作</th></tr>
|
||||
<tr><th>文件名</th><th>.env</th><th>大小</th><th>时间</th><th>操作</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in backup_items %}
|
||||
<tr data-backup-name="{{ item.name }}">
|
||||
<td><code>{{ item.name }}</code></td>
|
||||
<td>{{ item.backend_label or '—' }}</td>
|
||||
<td>{% if item.includes_env %}有{% else %}—{% endif %}</td>
|
||||
<td>{{ item.size_mb }} MB</td>
|
||||
<td>{{ (item.created_at or item.mtime).replace('T', ' ')[:16] }}</td>
|
||||
@@ -606,8 +605,7 @@
|
||||
<summary>备份恢复说明</summary>
|
||||
<ol style="margin:.5rem 0 0 1rem;padding:0">
|
||||
<li>可在上方上传 <code>.tar.gz</code>,或从列表下载备份到本机。</li>
|
||||
<li>点击「恢复此备份」会停止服务、还原数据库 / <code>uploads/</code> / <code>.env</code>,然后自动重启。</li>
|
||||
<li>恢复前请确认备份类型与当前服务一致(SQLite / PostgreSQL)。</li>
|
||||
<li>点击「恢复此备份」会停止服务、还原 <code>futures.db</code>、<code>uploads/</code> 与 <code>.env</code>,然后自动重启。</li>
|
||||
<li>也可在服务器手工执行包内 <code>restore.sh</code>(见 <code>RESTORE_DIR</code>)。</li>
|
||||
</ol>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user