mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
REFACTOR: Restoring of backups and migration of uploads to S3
This commit is contained in:
@ -135,9 +135,10 @@ class DiscourseCLI < Thor
|
||||
begin
|
||||
puts "Starting restore: #{filename}"
|
||||
restorer = BackupRestore::Restorer.new(
|
||||
Discourse.system_user.id,
|
||||
user_id: Discourse.system_user.id,
|
||||
filename: filename,
|
||||
disable_emails: options[:disable_emails]
|
||||
disable_emails: options[:disable_emails],
|
||||
factory: BackupRestore::Factory.new(user_id: Discourse.system_user.id)
|
||||
)
|
||||
restorer.run
|
||||
puts 'Restore done.'
|
||||
|
Reference in New Issue
Block a user