Use the Snap Creek Duplicator plugin. The plugin generates a zip file and an installer.php script. First, delete all the files and folders in the local WordPress root folder. Then copy the zip file and the installer script to this folder, and browse to installer.php. Click ‘next’ a few times, enter the database details, done.