1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Scheduled backups not running

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by jhghjgh hjghgkh, Sep 15, 2009.

  1. jhghjgh hjghgkh

    jhghjgh hjghgkh Guest

    0
     
    Hi all,

    I've created a backup task for a domain, to run each week. Trouble is, it doesn't run. I've tried running backupmng manually, but it just exists immediately.

    If I attempt to do a one-off backup of the domain via Plesk, this works, and it seems to trigger the scheduled backup to run - so I end up with two backups being generated at the same time.

    I've found the table in the psa database which appears to control scheduled backups:


    I can't see anything wrong with the above, but on the other hand, I'm not sure how it should look.

    Can anyone shed any light please?
     
  2. Nataliya Zagr

    Nataliya Zagr Regular Pleskian

    21
    87%
    Joined:
    Apr 14, 2009
    Messages:
    242
    Likes Received:
    0
    Hello,

    The problem may be
    1) incorrect time for backup creation start or
    2) incorrect creation time shown in backup information.

    According to Plesk database scheduled backup for 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)

    mysql>

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

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

    The utility compares BackupsScheduled.last, BackupsScheduled.period in Plesk database and starts backup if current time is more then (BackupsScheduled.last + BackupsScheduled.period). Not in time set in BackupsScheduled.backup_time as it is configured.

    In Parallels Plesk Panel 9.0 field BackupsScheduled.backup_time that equals to value "Start backup creation at (HH:mm)" in Parallels Plesk Panel does not affect creation time of scheduled backup.

    Please, see the following article for more information:

    http://kb.odin.com/en/6194
     
Loading...