Problem/Motivation

drush bam-restore was not able to restore a site archive, even if created using drush bb. The backup_migrate UI was able to restore the same file succesfully. The output from drush was:

Restoring will delete some or all of your data and cannot be undone. ALWAYS TEST YOUR BACKUPS ON A NON-PRODUCTION SERVER!
Are you sure you want to perform the restore? (y/n): y
Unable to restore from file /www/mysite/shared/files/backup_migrate/manual/mysite-2014-06-10T14-49-57.sitearchive.tar because a tar file can't be restored to this database.

Proposed resolution

The problem is resolved by correctly populating and passing a third parameter containing additional settings to backup_migrate_perform_restore from backup_migrate_drush_restore.

Additionally a call to drupal_clone (now deprecated) was being called preventing completion of restoration from an archive.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alarcombe’s picture

Issue summary: View changes
alarcombe’s picture

alarcombe’s picture

Assigned: Unassigned » alarcombe
ronan’s picture

Applied. Thanks!

ronan’s picture

Status: Needs review » Fixed

  • Commit 13c4a38 on 7.x-3.x by ronan:
    #2283701 by alarcombe. Restore not possible from archive
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.