Backup and Migrate provide archive file with files & db sql, that can be quickly moved to hosting via FTP or other standard way. But after this we need to unpack files manually, do database import, change Drupal settings (database URI).
Will be good to include simple PHP script with backup file, that do this things via one click.

So PHP-script must contain form to ask new database URI and target destination for files (default is current folder), also option to delete backup file after unpacking. And do 3 steps:

  1. Unpack Drupal files
  2. Do database import from SQL file
  3. Update DB URI in settings.php file
  4. Clear Drupal cache (if needed)

Comments

Murz created an issue. See original summary.

murz’s picture

And if we will have this script, we can also automate restore backup on remote target too (integrate with upload feature), for single-click move site to another hosting.

damienmckenna’s picture

Version: 8.x-4.x-dev » 5.0.x-dev
Related issues: +#2968766: Add Drush commands for getting details of available configurations

This should be handled as a Drush command - we don't want to bundle standalone PHP scripts that have the potential to destroy sites.

damienmckenna’s picture

Title: Include simple PHP script for unpack backup file on empty environment » Drush command to load backup on empty environment