# Moving to production

When reaching the end of the testing phase there could be a desire to copy the whole setup (including tableau workbooks) from your test environment to the production environment. When doing this there are a few things to keep in mind.

### Copy of the repository database

The repository database is the heart of WriteBack and contains all the setup you did in the management console.&#x20;

* The repository database on your test environment needs to be cloned manually.
* You need to do a fresh installation on the new production server.&#x20;
  * Connect to the cloned database on step 3 of the installation to use that as the repository database
* When you have configured SSO in your test environment you need to redo that in the production environment since the URL will be different. It is good practice to create a new app in your IDP for the production environment

### Workbook replication

When you already have your workbooks configured you probably want to point them to the new WriteBackExtreme production environment. You can use our Trex replacer tool for that.&#x20;

* Download your workbook
* Download the new .trex file from the management console of the production environment
* Download our [trex replacer tool](https://appsfortableau.infotopics.com/apps/toolbox/)
* Load the workbook and your new .trex file into the tool and let it replace the URL’s
