backup_migrate_cron
- Versions
- 5 – 7
backup_migrate_cron()
Implementation of hook_cron().
Takes care of scheduled backups and deletes abandoned temp files.
Code
contrib/backup_migrate/backup_migrate.module, line 142
<?php
function backup_migrate_cron() {
// Backing up requires a full bootstrap as it uses the file functionality in
// files.inc. Running poormanscron with caching on can cause cron to run without
// a full bootstrap so we manually finish bootstrapping here.
require_once './includes/common.inc';
_drupal_bootstrap_full();
// Set the message mode to logging.
_backup_migrate_message_callback('_backup_migrate_message_log');
backup_migrate_include('schedules');
backup_migrate_schedules_run();
}
?>


