[Info] Scheduled backup is not created in requested time

Created:

2016-11-16 12:57:43 UTC

Modified:

2017-04-24 11:35:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[Info] Scheduled backup is not created in requested time

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Windows
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Question

Scheduled backup is configured to begin at a specified time Backup Manager -> Scheduled Backup Settings -> Start backup creation at (HH:mm) .

However, creation of the backup is not started at the time when it was indicated. Why?

Answer

The scheduled backup is started the next time utility backupmng is executed if the scheduled period (24 hours) passed since the latest backup time. See details below:

According to the Plesk database, the scheduled backup for the server has the following configuration:

     mysql> select obj_id, obj_type, last, period, active, backup_time from BackupsScheduled where obj_type='server';
+--------+----------+---------------------+--------+--------+-------------+
| obj_id | obj_type | last          | period | active | backup_time |
+--------+----------+---------------------+--------+--------+-------------+
|      1 | server   | 2009-02-25 00:00:00 |  86400 | true   | 06:30:00    |
+--------+----------+---------------------+--------+--------+-------------+
1 row in set (0.00 sec)

The backup task is executed by Plesk utility backupmng that is launched from root crontab :

    # crontab -l
1,16,31,46 * * * * /opt/psa/admin/sbin/backupmng >/dev/null 2>&1

The utility compares values of psa.BackupsScheduled.last and psa.BackupsScheduled.period in Plesk database, then starts backup if current time is more than:

BackupsScheduled.last + BackupsScheduled.period

So it is not the time set in BackupsScheduled.backup_time

If there are a lot of the backup tasks scheduled at the same time, adjust 'Maximum number of simultaneously running scheduled backup processes' in Tools & Settings > Backup Manager to appropriate value. By default, it is set to '2'. Mind that backup is resource-consuming task and setting this value to a high number may cause downtime.

If it is required to test the scheduled backup process right no, empty the value of psa.BackupsScheduled.last for particular backup task in Plesk database:

mysql> begin;
mysql> update psa.BackupsScheduled set last='' where obj_id=1;
mysql> commit;
Have more questions? Submit a request
Please sign in to leave a comment.