diff --git a/app/templates/admin/backup.html b/app/templates/admin/backup.html new file mode 100644 index 0000000..961e74d --- /dev/null +++ b/app/templates/admin/backup.html @@ -0,0 +1,395 @@ +{% extends "base.html" %} + +{% block title %}Backup & Restore - Admin{% endblock %} + +{% block content %} +
Everything needed to rebuild this library elsewhere: database rows, PDFs, images, covers, thumbnails and extra files.
+{{ sqlite_path }}{% endif %}{{ uploads_root }}{{ backup_folder }}{% if keep %} — keeping the newest {{ keep }}{% endif %}These records will survive the migration but their file will be gone. Worth fixing before you cut over.
+{{ path }}| Archive | +Created | +Size | +Contents | +Actions | +
|---|---|---|---|---|
+ {{ entry.filename }}
+ {% if not entry.valid %}
+ unknown format
+ {% endif %}
+ {% if m.created_by %}by {{ m.created_by }} {% endif %}
+ |
+ {{ entry.modified.strftime('%Y-%m-%d %H:%M') }} | +{{ entry.size_human }} | +
+ {% if m.counts %}
+ {{ m.counts.sets }} sets ·
+ {{ m.counts.instructions }} instructions ·
+ {{ m.counts.extra_files }} extra
+
+ {{ m.uploads.file_count }} files, {{ m.uploads.total_human }}
+
+ {% else %}
+ —
+ {% endif %}
+ |
+ + + + + + {% if entry.valid %} + + {% endif %} + + | +
.zip.flask backup verify lim-backup-....zip
+flask backup restore lim-backup-....zip --mode fresh
+
+ Stored paths are rewritten to forward slashes during restore, so a Windows-made
+ backup lands correctly on Linux. See docs/BACKUP_AND_MIGRATION.md.
+
Created by: Jess Rogerson (yelling commands at Claude.AI)
+ + +