You are here

function backup_migrate_cleanup in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 backup_migrate.module \backup_migrate_cleanup()
  2. 8.3 backup_migrate.module \backup_migrate_cleanup()
  3. 6.2 backup_migrate.module \backup_migrate_cleanup()
  4. 7.3 backup_migrate.module \backup_migrate_cleanup()
  5. 7.2 backup_migrate.module \backup_migrate_cleanup()

Cleanup after a success or failure.

10 calls to backup_migrate_cleanup()
backup_file::transfer in includes/files.inc
Transfer file using http to client. Similar to the built in file_transfer, but it calls module_invoke_all('exit') so that temp files can be deleted.
backup_migrate_backup_fail in ./backup_migrate.module
Clean up when a backup operation fails.
backup_migrate_backup_succeed in ./backup_migrate.module
Clean up when a backup operation suceeds.
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.
backup_migrate_restore_fail in ./backup_migrate.module
Clean up when a restore operation fails.

... See full list

File

./backup_migrate.module, line 1439
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_cleanup() {

  // Check that the cleanup function exists. If it doesn't then we probably didn't create any files to be cleaned up.
  if (function_exists('_backup_migrate_temp_files_delete')) {
    _backup_migrate_temp_files_delete();
  }
}