mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 19:30:48 +08:00
FEATURE: backup without uploads
This commit is contained in:
@ -52,8 +52,9 @@ Discourse.Backup.reopenClass({
|
||||
@method start
|
||||
@returns {Promise} a promise that resolves when the backup has started
|
||||
**/
|
||||
start: function() {
|
||||
return Discourse.ajax("/admin/backups", { type: "POST" }).then(function(result) {
|
||||
start: function (withUploads) {
|
||||
if (withUploads === undefined) { withUploads = true; }
|
||||
return Discourse.ajax("/admin/backups", { type: "POST", data: { with_uploads: withUploads } }).then(function(result) {
|
||||
if (!result.success) { bootbox.alert(result.message); }
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user