You are here

function backup_migrate_schedule_run in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/schedules.inc \backup_migrate_schedule_run()
  2. 7.3 includes/schedules.inc \backup_migrate_schedule_run()

Run the preconfigured schedules. Called on cron.

1 string reference to 'backup_migrate_schedule_run'
backup_migrate_cronapi in ./backup_migrate.module
Implementation of hook_cronapi().

File

includes/schedules.inc, line 68
All of the schedule handling code needed for Backup and Migrate.

Code

function backup_migrate_schedule_run($schedule_id) {
  backup_migrate_include('profiles');
  if ($schedule = backup_migrate_get_schedule($schedule_id)) {
    $schedule
      ->run();
  }
  backup_migrate_cleanup();
}