Create duplicate site without the data

Is there any way to duplicate the existing site without data entered.

I’ve created a site with lot of custom doctypes and scripts. and I want to copy all the functionality without data to another site, for my friend with similar business model.

If you have developed added functionality through custom app , then do it without any issue.

You can do it as follows:

  1. Take backup from existing site and extract.

  2. Create new site using backup of existing site
    bench new-site [sitename] --sql [backup dal file]

  3. Login to new site — go to company — delete all transactions.

  4. Delete master data manually.

  5. Delete Company