Tutorial: Duplicate ERPNext site

command to restore db to existing site

bench --site mysite.localhost restore /path/to/dump/20200627_153338-mysite_localhost-database.sql.gz

command to restore db to non existing site

bench new-site mysite.localhost --source_sql /path/to/dump/20200627_153338-mysite_localhost-database.sql
3 Likes