# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infotopics.com/writebackextreme/v4.0/installation-guide/moving-to-production.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
