# 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: 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://learn.capstorm.com/cs-govern/common-tasks/export-csguardian-rules-to-another-database.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.
