How Scheduled backup work? Scheduled backup is not created in requested time

Created:

2016-11-16 13:14:27 UTC

Modified:

2017-08-16 17:16:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How Scheduled backup work? Scheduled backup is not created in requested time

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

How Scheduled backup work? Scheduled backup is not created in requested time.

Resolution

Scheduled backup is executed by " backupmng " utility:

    [root@test]# cat /etc/cron.d/plesk-backup-manager-task
15 * * * * root [ -x /usr/local/psa/admin/sbin/backupmng ] && /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1

Information about scheduled backup is saved in " psa " 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)

So " backupmng " launches in scheduled time and checks if the following condition is met:

    Current time on server - last scheduled backup time (value from BackupsScheduled  table)<period (for daily backup it is 86400 sec)

And starts backup if current time is more than (BackupsScheduled.last + BackupsScheduled.period), not in time set in BackupsScheduled.backup_time as it is configured.

Have more questions? Submit a request
Please sign in to leave a comment.