improve backup
Some checks failed
/ Run tests (push) Failing after 16s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-27 03:38:15 +01:00
parent db9755cad5
commit fc71cd4a09
4 changed files with 45 additions and 17 deletions

View file

@ -4,7 +4,14 @@ module Admin
class BackupsController < ApplicationController
# GET /admin/backups/1
def show
send_file Backup.db_xlsx, filename: "backup.xlsx", disposition: :attachment
respond_to do |format|
format.xlsx do
send_file Backup.db_xlsx, filename: "backup.xlsx", disposition: :attachment
end
format.zip do
send_file Backup.zip, filename: "backup.zip", disposition: :attachment
end
end
end
end
end