# Exporting Enterprise Gateway Configuration

## Contents
Overview What is Exported Exporting Configuration Items Exporting All Enterprise Gateway Configuration

## Overview
You can export Enterprise Gateway configuration data by right-clicking a Policy Studio tree node (for example, policy or policy container), and selecting the relevant export menu option. The configuration is exported to an XML file, which you can then import into a different Enterprise Gateway configuration. This is useful if you have configured the Enterprise Gateway in a testing environment and want to move this configuration to a live production environment. By exporting configuration data from a test environment, and importing into a production environment, you can effectively migrate your Enterprise Gateway configuration. This is the recommended way to export Enterprise Gateway configuration data, and enables you to manage references between configuration components. For details on importing configuration data, see Importing Enterprise Gateway Configuration.
## What is Exported
You can export a Enterprise Gateway configuration item by right-clicking a node in the Policy Studio tree. For example, this includes the following Policy Studio tree nodes: Policies Policy Containers Schemas Alerts Caches Regular Expressions (White List) Attacks (Black List) Users Certificates Relative Paths Remote Hosts Database Connections In addition, you can also export configuration items that are associated with the selected tree node. For example, this includes referenced policies, MIME types, regular expressions, schemas, and remote hosts. For details on exporting additional configuration items, see the next section.
## Exporting Configuration Items
To export Enterprise Gateway configuration items, perform the following steps: Right-click a Policy Studio tree node (for example, policy or policy container), and select the relevant menu option (for example, Export Policy). In the export dialog, you can select additional configuration items that you wish to export. The selected tree node (in this case, policy) is exported by default. The Also Export Items list on the left includes additional items that are also exported by default along with the policy (for example, MIME types, regular expressions, and schemas). The Associated Configuration list on the right includes items that are not exported by default (for example, relative paths or remote hosts). To exclude an item for export, select it in the Also Export Items list, and click Remove. To include an item for export, select it in the Associated Configuration list, and click Add. Click OK to export the selected configuration item (for example, policy), and the additional configuration displayed in the Also Export Items tree on the left. Referenced Policies When exporting a policy or policy container, by default, any policies referenced by the policy are included for export and displayed in the Also Export Items list.
## Exporting All Enterprise Gateway Configuration
To export all Enterprise Gateway configuration data, perform the following steps: Click Export Configuration button in the Policy Studio toolbar. In the Export Configuration dialog, click OK to export the entire Enterprise Gateway configuration data. This includes all references between configuration components.