What is the best way to duplicate a wordpress website build with bedrock? I want to duplicate it in a subfolder for test purposes. Thank you
If you were using git for the project you could just clone it again in a new folder. Composer install, etc. Or you could copy the project root to the new location.
In both cases, depending on what testing you were doing, you might want to create a new database for this side test site, and. update the .env for the new connection details.
If you put it in a subfolder of the first Bedrock instance you may have some trouble. But that sort of depends on what local dev setup you were using, Trellis, Lando, Valet, or an xampp.
I use this often when I have a large refactor or feature building out on a branch, and the database will need to be restored to test and deploy small hotfixes to the live site. It is easier to start from a fresh database and site than to switch branches where I was working and export, import, test, import again.