mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: backup without uploads
This commit is contained in:
@ -23,7 +23,11 @@ class Admin::BackupsController < Admin::AdminController
|
||||
end
|
||||
|
||||
def create
|
||||
BackupRestore.backup!(current_user.id, true)
|
||||
opts = {
|
||||
publish_to_message_bus: true,
|
||||
with_uploads: params.fetch(:with_uploads) == "true"
|
||||
}
|
||||
BackupRestore.backup!(current_user.id, opts)
|
||||
rescue BackupRestore::OperationRunningError
|
||||
render json: failed_json.merge(message: I18n.t("backup.operation_already_running"))
|
||||
else
|
||||
|
Reference in New Issue
Block a user