WordPress.org

Support

Support » Plugins and Hacks » [Resolved] BUWP 2.0.6 – schedule is reverting to 11pm

[Resolved] BUWP 2.0.6 – schedule is reverting to 11pm

  • Hi, the plugin seems to be backing up fine but I can’t change the schedule time (I use Crontrol to do this).

    It used to work but now, every time I change the scheduled time it reverts to 11pm.

    I’ve looked for HMBKP_SCHEDULE_TIME constant in my wp-config.php and there is none.

    Checked the constant value in header.php and the constant only gets defined when the plugin is activated.

    Can you help me?

    http://wordpress.org/extend/plugins/backupwordpress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tom Willmot

    @willmot

    You’ll need to define the HMBKP_SCHEDULE_TIME constant yourself in wp-config with the time you want the backups to occur.

    define( 'HMBKP_SCHEDULE_TIME', '07:45' );

    Ok, I understand that. But, how do I define multiple constants for multiple schedule times?

    I basically use two schedules: one daily “database only” backup (at 11:55pm) and a monthly (1st of each month) “files only” backup (at 11pm). If I set both to the same time, on the day of the “files only” backup it would happen at the same time of the “database only” backup.

    How do I prevent that?

    What about setting the time in the settings page, instead of using a constant? In this case, the constant would define only the default time, on the creation of a new schedule. What do you think? 😉

    Plugin Author Tom Willmot

    @willmot

    There is no way to have different times per schedule currently.

    I will introduce a UI for controlling this at some point.

    Ok, thanks. Two questions, though:

    1. Is there a problem with two schedules happening at the same time (low resources, for example)?

    I found out that Crontrol CAN change the day of the monthly schedule, but can’t change the time.

    2. So, I was just looking at the options table on my database and found the two schedules. But I could NOT find the time of execution. Isn’t it recorded somewhere?

    Plugin Author Tom Willmot

    @willmot

    Cron won’t let 2 schedules run at exactly the same time, they will run one after the other.

    The time is stored as part of the cron.

    As part of the entry “hmbkp_schedule_default-#”?

    Plugin Author Tom Willmot

    @willmot

    It’s stored in the cron row in the wp_options table.

    Thanks! I’ll use it this way for now and will wait for the schedule controlling UI.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] BUWP 2.0.6 – schedule is reverting to 11pm’ is closed to new replies.