See the resource for the most up to date instructions.
How to duplicate a live site to use as a test site
These instructions explain how to create a test installation which is an exact duplicate of your live installation. On Your Server Create a new test database with a different database name, user name and password to your live installation...
xenforo.com