Give some time for the backup to start

This commit is contained in:
Girish Ramakrishnan 2015-07-09 20:27:30 -07:00
parent abcd3b4915
commit 41fc20b1a5
1 changed files with 1 additions and 1 deletions

View File

@ -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');