How Do I create a mirror website

I would like to create a duplicate website to test plugins and changes on before I add to the live site. Can you walk me through how to do that?
thanks,