> For the complete documentation index, see [llms.txt](https://learn.capstorm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.capstorm.com/cs-govern/common-tasks/export-csguardian-rules-to-another-database.md).

# Export CS:Govern Rules to Another Database

CS:Govern supports migrating protection and user access rules from one CopyStorm instance to another via its export and import subsystems.

![](/files/bV66cgZUHAhsDBXbIqYV)

## Export CS:Govern Protection Rules

To export the current CS:Govern protection rules use the application menu bar *File => Export Protection Rules* operation.

* A normal File Save dialog will be opened.
* A file of configuration rules will created (.csGovernRules extension).

The exported rule file is an XML file that can be viewed (and edited if required). It will look like:

```
<CSGovern>
   <Field sfTable="Contact" sfField="FirstName" maskingRule="Asterisks">
      <AccessCategory name="PII"/>
   </Field>
   <Field sfTable="Contact" sfField="Email" maskingRule="Random">
      <AccessCategory name="PII"/>
   </Field>
   <Field sfTable="Account" sfField="Description" maskingRule="Lorem Ipsum">
      <AccessCategory name="Public"/>
   </Field>
   <Field sfTable="Contact" sfField="LastName" maskingRule="Asterisks">
      <AccessCategory name="PII"/>
   </Field>
   <User name="KNEEDEEP-CAPSTO\greg" active="true" databaseRole="false">
      <AccessCategory name="Public"/>
   </User>
   <User name="sa" active="true" databaseRole="false">
      <AccessCategory name="PII"/>
      <AccessCategory name="Public"/>
   </User>
</CSGovern>
```

## Import CS:Govern Protection Rules

Importing previously export CS:Govern protection rules into a CopyStorm database is a three step process:

1. Use the File => Import Protection Rules into CS:Govern.
2. Verify the list of rules imported from a dialog CS:Govern displays.
3. Deploy the updated rules using the *Save & Protect* button.

#### Open a CS:Govern Rule File

![](/files/TvSzbThqhN80arYCkQcu)

#### Review Imported Protection Rules

![](/files/ZYo3V3rZJ6M0aOuYKZSt)

#### Deploy Protection: Save & Protect

![](/files/cJAD4ViopKmqtaVzoUM3)


---

# 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.capstorm.com/cs-govern/common-tasks/export-csguardian-rules-to-another-database.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
