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

Snakehead’s picture

And 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.

areikiera’s picture

Anybody have tips for troubleshooting this?

EDIT: In my case, pathauto_entity was the cause of these errors. Disabling it fixed the problem.

ronan’s picture

Status: Active » Closed (works as designed)

In 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.

Vako’s picture

Thank you for the solution, what I did is unzipped the database tar file and renamed it to .mysql, the restore worked perfectly!

joachim’s picture

Category: Support request » Bug report
Status: Closed (works as designed) » Active

I'm getting this error for a database backup that I've just made on another copy of the site.

joachim’s picture

The downloaded file wasn't created properly - trying to unzip on the command line gave this error:

Archive:  /Users/joachim/Downloads/Joachim039sblog-2023-07-21T14-06-44.mysql.gz
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/joachim/Downloads/Joachim039sblog-2023-07-21T14-06-44.mysql.gz or
BrankoC’s picture

If 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.