FEATURE: new 'backup_with_uploads' site setting
This commit is contained in:
parent
e20c2726df
commit
de95573d23
|
@ -5,7 +5,7 @@ module Jobs
|
|||
sidekiq_options retry: false
|
||||
|
||||
def execute(args)
|
||||
BackupRestore.backup!(Discourse.system_user.id, publish_to_message_bus: false)
|
||||
BackupRestore.backup!(Discourse.system_user.id, publish_to_message_bus: false, with_uploads: SiteSetting.backup_with_uploads)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -966,6 +966,7 @@ en:
|
|||
enable_s3_backups: "Upload backups to S3 when complete. IMPORTANT: requires valid S3 credentials entered in Files settings."
|
||||
s3_backup_bucket: "The remote bucket to hold backups. WARNING: Make sure it is a private bucket."
|
||||
backup_time_of_day: "Time of day when the backup should occur."
|
||||
backup_with_uploads: "Include uploads in scheduled backups. Disabling this will only backup the database."
|
||||
|
||||
active_user_rate_limit_secs: "How frequently we update the 'last_seen_at' field, in seconds"
|
||||
verbose_localization: "Show extended localization tips in the UI"
|
||||
|
|
|
@ -853,6 +853,7 @@ backups:
|
|||
backup_time_of_day:
|
||||
default: '3:30'
|
||||
regex: "^((0?(0|1|2|3|4|5|6|7|8|9)|(10|11|12|13|14|15|16|17|18|19|20|21|22|23))):\\d\\d$"
|
||||
backup_with_uploads: true
|
||||
|
||||
uncategorized:
|
||||
version_checks:
|
||||
|
|
Loading…
Reference in New Issue