cloudlog/application/views/adminbackup/index.php
Peter Goodhall 79cd4b4397 Add user-level backup and restore functionality
Introduces user-facing JSON+ZIP export and import for stations, logbooks, and QSOs, including preview and progress views. Updates backup controller to allow all authenticated operators (level 2+) and replaces legacy backup card with new workflow in the UI. Adds new views for import preview and progress, supporting selective import and conflict handling.
2025-11-24 17:30:40 +00:00

18 lines
697 B
PHP

<div class="container mt-4">
<h2>Admin Backup & Restore</h2>
<div class="row">
<div class="col-md-6">
<h4>Backup</h4>
<form method="get" action="<?php echo site_url('adminbackup/export'); ?>">
<button type="submit" class="btn btn-primary">Download Full Backup (ZIP)</button>
</form>
</div>
<div class="col-md-6">
<h4>Restore</h4>
<form method="post" enctype="multipart/form-data" action="<?php echo site_url('adminbackup/import'); ?>">
<input type="file" name="backup_file" accept=".zip,application/zip" required>
<button type="submit" class="btn btn-success">Upload & Restore</button>
</form>
</div>
</div>
</div>