improve backup
This commit is contained in:
parent
db9755cad5
commit
fc71cd4a09
4 changed files with 45 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue