Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was running on 7.x-2.7 and upgraded to see if that would resolve my issue. It did not.
When trying to restore a database from a file (tar.gz), I receive the following errors:
- Notice: Undefined property: stdClass::$uri in backup_migrate_ui_manual_restore_form_submit() (line 677 of /home/ktarec/public_html/sites/all/modules/backup_migrate/backup_migrate.module).
- Notice: Undefined property: stdClass::$uri in backup_migrate_destination_browser_upload->load_file() (line 44 of /home/ktarec/public_html/sites/all/modules/backup_migrate/includes/destinations.browser.inc).
- Notice: Undefined property: stdClass::$uri in backup_migrate_destination_browser_upload->load_file() (line 45 of /home/ktarec/public_html/sites/all/modules/backup_migrate/includes/destinations.browser.inc).
- Unable to restore from file /home/ktarec/tmp/backup_migrate_aOMhwp because a file can't be restored to this database.
Could not perform the restore.
I get the following error messages in my Recent Log Messages:
- Unable to restore from file /home/ktarec/tmp/backup_migrate_aOMhwp because a file can't be restored to this database.
- Could not perform the restore.
Any help would be greatly appreciated!
Thanks!
Kirk
Comments
Comment #1
Snakehead CreditAttribution: Snakehead commentedAnd I can't perform a restore too and I get no error messages. Before it did work very well. Now after choosing the backup file and pushing the button «Restore now» I get immediately the common restore page again. There was no effect. The Permissions are OK.
Comment #2
areikiera CreditAttribution: areikiera commentedAnybody have tips for troubleshooting this?EDIT: In my case, pathauto_entity was the cause of these errors. Disabling it fixed the problem.
Comment #3
ronan CreditAttribution: ronan commentedIn response to the original request: If your backup is a tar.gz then it is a files backup (it's a tarball of files) and therefore you can't restore it to a database, it has to be restored to a files directory.
Comment #4
Vako CreditAttribution: Vako commentedThank you for the solution, what I did is unzipped the database tar file and renamed it to .mysql, the restore worked perfectly!
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedI'm getting this error for a database backup that I've just made on another copy of the site.
Comment #6
joachim CreditAttribution: joachim as a volunteer commentedThe downloaded file wasn't created properly - trying to unzip on the command line gave this error:
Comment #7
BrankoC CreditAttribution: BrankoC as a volunteer commentedIf you open the file in a text editor, what does it look like?
I am asking because several browsers unpack a downloaded .gz file, but do not rename it when saving it to the local file system.