Closed (fixed)
Project:
Backup and Migrate
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2012 at 10:07 UTC
Updated:
25 Apr 2013 at 04:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
bartclarkson commentedSame. Subscribing. Would be very nice to be able to define custom CRON string, like 0 2 * * * for 2am and whatnot. I'm going to look into posting a patch, because I'm getting stuck.
Comment #2
bartclarkson commentedI took a different track. I created a module called backup_migrate_stagger_schedule that exists to provide an alternative cron job. It's purpose is simply to break the foreach loop that runs through all eligible schedule jobs, such that one is run at a time until they are exhausted. You may have need of this if you are backing up multiple databases or filesets of large size, relative to your server resources.
Following install of this module, in Elysia Cron, I disabled the backup_migrate_cron, and enabled the backup_migrate_stagger_schedule_cron, running it every hour.
I have added some comments in the .module to posit that perhaps this limitation of simultaneously schedule jobs might be easily made a configurable option in the core module.
Comment #3
ronan commentedThat's a nice approach.
Also if you have Drush on your server, you can get more nuanced control by running backups directly with cron.
ie:
Comment #4
ronan commentedAnd now you can do the same with the elysia cron module