WordPress.org

Ready to get started?Download WordPress

Forums

BackUpWordPress
[resolved] BUWP 2.0.6 - schedule is reverting to 11pm (9 posts)

  1. José Luís
    Member
    Posted 1 year ago #

    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/

  2. Tom Willmot
    Human Made
    Plugin Author

    Posted 1 year ago #

    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' );
  3. José Luís
    Member
    Posted 1 year ago #

    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? ;-)

  4. Tom Willmot
    Human Made
    Plugin Author

    Posted 1 year ago #

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

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

  5. José Luís
    Member
    Posted 1 year ago #

    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?

  6. Tom Willmot
    Human Made
    Plugin Author

    Posted 1 year ago #

    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.

  7. José Luís
    Member
    Posted 1 year ago #

    As part of the entry "hmbkp_schedule_default-#"?

  8. Tom Willmot
    Human Made
    Plugin Author

    Posted 1 year ago #

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

  9. José Luís
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic