Article ID: 121316, created on Apr 25, 2014, last review on May 9, 2014

  • Applies to:
  • Plesk Automation 11.5

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.

Search Words

backup not working

33a70544d00d562bbc5b17762c4ed2b3 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF