2014-10-10 14:04:07 -04:00
|
|
|
require "backup_restore/backup_restore"
|
2014-03-12 13:26:51 -04:00
|
|
|
|
|
|
|
module Jobs
|
2015-08-07 11:34:58 -04:00
|
|
|
class CreateBackup < Jobs::Base
|
2014-03-12 13:26:51 -04:00
|
|
|
sidekiq_options retry: false
|
|
|
|
|
|
|
|
def execute(args)
|
2015-11-12 10:23:59 -05:00
|
|
|
BackupRestore.backup!(Discourse.system_user.id, publish_to_message_bus: false, with_uploads: SiteSetting.backup_with_uploads)
|
2014-03-12 13:26:51 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|