> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.15/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/manage-data/move-data-folders-to-another-location-on-the-server.md).

# Move Data Folders to Another Location on the Server

Move Cortex XSOAR 6.15 data folders to a different server location for storage management.

Follow these steps to move the directories installed on the Cortex XSOAR server to another location.

Let `<new path>` mark the base path to which to move the Cortex XSOAR server files.

Always use the **cp** command with the **-p** flag to retain the original file permissions.

Use the following commands to only move the data.

1. Stop the Cortex XSOAR service using the appropriate command for your OS.
   * `systemctl stop demisto`
   * `sudo service demisto stop`
2. Move `/var/lib/demisto` to *`<new path>`*`/var/lib/demisto`.

   ` cp -pfr /var/lib/demisto`` `` `*`<new path>`*`/var/lib`
3. Edit the `/etc/demisto.conf` file.

   Contents of the `/etc/demisto.conf` file are in JSON format and can hold additional data than what is shown in the example.

   ```programlisting
   {
       "Server": {
               "HttpsPort": 443
       },
       "folders": {
               "lib": "{new path}/var/lib/demisto"
       },
       "DB": {
               "DatabaseDir": "{new path}/var/lib/demisto/data",
               "IndexDir": "{new path}/var/lib/demisto/data"
       }
   }
   ```
4. Update the origin path for the version control folder to the new location.

   For example, if the new location is `/data/demisto/versionControlRepo`, run `git remote set-url origin "file:///data/demisto/versionControlRepo"`

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Do not update the origin path if you are using a remote repository. If you are using CI/CD for content management, update the origin path.</p></div>
5. Start the Cortex XSOAR service using the appropriate command for your OS.
   * `systemctl start demisto`
   * `sudo service demisto start`
6. (Optional) Verify that the process was performed successfully and remove the original directory `/var/lib/demisto`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.15/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/manage-data/move-data-folders-to-another-location-on-the-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
