cloning:

-copy files to working directory (not in a live environment which can be accessed via HTTP)

-copy database; create a new user and password for the database.

-edit wp-config.php
–database credentials
–secret keys
–any directory related entries
–set jetpack to developer

-also check wp-settings.php
–historically, there haven’t been hard coded directories in here, but ya never know.

-database: wp_options table
–siteurl
–home
–ept_opt_admin_url
–do a search
—SELECT * FROM `wp_options` WHERE `option_value` LIKE ‘%twirp.ca%’
–read this page and comments about data serialization in the database https://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/
–https://wordpress.org/plugins/search-and-replace/
–when doing search and replace, be sure to use http://site.ca; https://site.ca; https://www.site.ca; http://www.site.ca; then do directories

-discourage search engines