In order to test different mods on a given site, I would like to duplicate the site in order to be able to discard and fall back if necessary.
I follow this procedure :
1. Install backup & migrate module and enable
2. Backup the mysql database
3. zip the "sites" folder in entirety
Create a new apache virtual host, then :
4. Install drupal fresh (this works fine)
5. Install backup & migrate
6. Restore the mysql backup from the original site
7. unzip a copy of the "sites" zip file over the default sites folder.
Result : new site wants to connect to original database. Not desirable.
So, I modify the "settings.php" file in the "sites/default" folder to point to the new database.
Result : new drupal site reports multiple errors, not happy about a whole range of stuff, slightly broken.
What am I getting wrong? I cannot find a clean descriptive procedure for correctly backing up and restoring an entire site.