You are here

function backup_migrate_prune_cron in Backup and migrate prune 7

Same name and namespace in other branches
  1. 7.2 backup_migrate_prune.module \backup_migrate_prune_cron()

Implementation hook_cron().

File

./backup_migrate_prune.module, line 392
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_prune_cron() {
  $query = db_select('backup_migrate_gardener', 'bmg')
    ->fields('bmg')
    ->execute();
  while ($gardener = $query
    ->fetchAssoc()) {
    backup_migrate_prune_prune($gardener['gardener_id']);
  }
}