I have two WP sites on 6.8.x. I want to create a copy of each in Local to run through the upgrade process for the plugins, themes and core WP (to 7.0.2) before doing it on the live site.
The websites have BackWPUp installed, so I can provide Local with a zip file containing the SQL DB and wp-content folder. Local will import these and create a site but the new site is based on 7.0.2, not 6.8.x so I can’t test the upgrade process properly.
Is there a simple to way to restore each site and maintain the original WP versions in Local?
An alternative workflow would be to create a new site in Local, install BackWPUp and restore a backup. However, the URLs will be wrong in the DB. Would changing the Site Domain in Local fix the restored DB (and other settings) to the new Local FQDN?
System Details
Local Version: 10.1.1
Operating System (OS) and OS version: Windows 11 Pro
Hi @SuperSix you can change the WordPress version of a site in Local using CLI in your Site Shell (wp core update --version=desired_version --force) or use a plugin like this:
Thanks @Nick-B. I performed the import in Local from a .zip and then used the CLI to downgrade. Some simple testing shows that seemed to work fine. I had a follow on issue with my admin account from the live site not having administration privileges on the restore.
Anytime I set my privileges through the CLI back to administrator, they got changed back to subscriber. I eventually figured out there was a setting enabled in Really Simple Security which monitors for account elevations and resets them. I guess something in the DB restore process makes RSS think the account hasn’t been elevated to an administrator in the correct way and drops the privileges.
Article link should anyone else ever get stuck on it: