function backup_migrate_cron in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.4 backup_migrate.module \backup_migrate_cron()
- 8.2 backup_migrate.module \backup_migrate_cron()
- 8.3 backup_migrate.module \backup_migrate_cron()
- 5.2 backup_migrate.module \backup_migrate_cron()
- 5 backup_migrate.module \backup_migrate_cron()
- 6.3 backup_migrate.module \backup_migrate_cron()
- 6 backup_migrate.module \backup_migrate_cron()
- 7.3 backup_migrate.module \backup_migrate_cron()
- 7.2 backup_migrate.module \backup_migrate_cron()
- 5.0.x backup_migrate.module \backup_migrate_cron()
Implementation of hook_cron().
Takes care of scheduled backups and deletes abandoned temp files.
File
- ./
backup_migrate.module, line 166 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
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();
backup_migrate_include('files');
_backup_migrate_temp_files_delete();
}