I’m just finish duplicate site on ERPNext and want to share step for those who might need it in the future.
My use case is I want to duplicate site from staging-erp.aaa.com to erp.aaa.com and keep all the config and setting. So when staging-erp.aaa.com will be still running and will be use for testing and training and erp.aaa.com will be use for real transaction.
An additional step might be need to properly setup nginx domain, it’s depends on each setup.
Create new site
bench new-site erp.aaa.com
Copy site database
Site database name locate at bench/sites/site_name/site_config.json
Thanks @pipech Must say very timely post. We are testing a site with loads of enhancement. With your tutorial we may not have to redo the whole setup again in production.
Some corporate environments move data from production server to staging area each night so that test environment always use the latest data. Thank you for the tutorial.