Give some time for the backup to start
This commit is contained in:
parent
abcd3b4915
commit
41fc20b1a5
@ -210,7 +210,7 @@ Cloudron.prototype.backup = function () {
|
||||
verifyResponse(res, 'Could not schedule backup');
|
||||
|
||||
while (true) {
|
||||
sleep(5);
|
||||
sleep(10); // backup sometimes takes a while to start
|
||||
res = request.get(this._origin + '/api/v1/cloudron/progress').end();
|
||||
if (res.body.backup === null || res.body.backup.percent === 100) {
|
||||
debug('backup done');
|
||||
|
Loading…
Reference in New Issue
Block a user