# Moving the StifleR Server Databases to a New Drive on the Same Server

## Summary

The 2Pint StifleR Server, by default, stores its databases in the %ProgramData% folder which is typically located on the C: drive. In some cases, an admin might want to move the databases to another drive. The steps below describes the process of migrating the StifleR databases to another folder on the same server.&#x20;

## Procedure

1. On the server hosting the StifleR server, create a new folder where you would like to store the databases. In this example, the folder will be **D:\StifleRDBs**.
2. **Stop** the "2Pint Software StifleR Server" service.
3. Copy the folder structure from **C:\ProgramData\2Pint Software\StifleR\Server\Databases** to the folder created in step 1, Ex: **D:\StifleRDBs**.
4. To modify the configuration, you will need to edit the **StifleR.Service.exe.config** and **appSettings-override.xml** files. It is recommended to make a backup copy of the file before proceeding. The file is located in the installation directory in which StifleR was installed.&#x20;
5. Open a text editor as administrator and edit the **StifleR.Service.exe.config** file.&#x20;
6. In the StifleR.Service.exe.config file, under the **\<appSettings file="./appSettings-override.xml">** line, add the following:

   ```
   <add key="NewLocationDatabasePath" value="D:\StifleRDBs\Location" />
   <add key="MainDatabasePath" value="D:\StifleRDBs\Main" />
   <add key="HistoryDatabasePath" value="D:\StifleRDBs\History" />
   ```
7. **Save** the StifleR.Service.exe.config file then **start** the "2Pint Software StifleR Server" service.
8. Check the **Event Viewer** - **Applications and Services Logs** - **TwoPintSoftware** - **StrifleR.Service** - **Operational** and check for errors.&#x20;

## Verification

1. Open the StifleR Dashboard and verify that you can logon and verify that the data is available as expected, specifically your Networks.
2. If all looks well, feel free to delete the **Databases** folder under: C:\ProgramData\2Pint Software\StifleR\Server. If not, see the next section to Backout of the change.

## Backout

1. If an error occurred and you need to restore the previous configuration. Stop the **2Pint Software StifleR Server** service.
2. Restore the backup copy of the **StifleR.Service.exe.config** and start the **2Pint Software StifleR Server** service.


---

# 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://documentation.2pintsoftware.com/stifler/guides/backup-and-recovery/moving-the-stifler-server-databases-to-a-new-drive-on-the-same-server.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.
