You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
<!-- app/views/db_dump/index.html.erb -->
|
|
<div class="container mt-5">
|
|
<h2 class="mb-4">📦 Datenbank-Backup & Wiederherstellung</h2>
|
|
|
|
<!-- Dump erstellen -->
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">🧾 Dump erstellen</h5>
|
|
<p class="card-text">Hier kannst du einen aktuellen Dump der Datenbank herunterladen.</p>
|
|
<a href="/db_dump/dump" class="btn btn-primary">
|
|
Dump jetzt herunterladen
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Dump wiederherstellen -->
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title">📤 Dump wiederherstellen</h5>
|
|
<p class="card-text">Wähle eine SQL-Dump-Datei, um die Datenbank wiederherzustellen.</p>
|
|
|
|
<%= form_with url: "/db_dump/restore", method: :post, local: true, html: { multipart: true, class: "needs-validation" } do |form| %>
|
|
<div class="mb-3">
|
|
<%= form.file_field :dump_file, class: "form-control", required: true %>
|
|
</div>
|
|
<%= form.submit "Dump einspielen", class: "btn btn-danger" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|