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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2283701-1-restore-not-possible-from-archive.patch | 1.16 KB | alarcombe |
Comments
Comment #1
alarcombe CreditAttribution: alarcombe commentedComment #2
alarcombe CreditAttribution: alarcombe commentedComment #3
alarcombe CreditAttribution: alarcombe commentedComment #4
ronan CreditAttribution: ronan commentedApplied. Thanks!
Comment #5
ronan CreditAttribution: ronan commented