# Restore AS2 Connections

Learn how to restore a Vault's AS2 Connections following an environment refresh.

## About AS2 Connection Settings

Vault does not retain any _AS2 Connection_ records following a Vault refresh. However, when you successfully register an _AS2 Connection_ with the AS2 Gateway Service by <a href="/en/lr/01458/#synchronize-the-connection">synchronizing the connection</a>, Vault stores the most important details of the connection in the AS2 Gateway Service. When a Vault environment is refreshed, your Admin can use the _Restore AS2 Connections_ feature to restore the AS2 Connections that were registered with the Gateway Service prior to the refresh.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: The <em>Restore AS2 Connections</em> feature cannot restore <em>AS2 Connection</em> records that were in the <em>Unregistered</em> state prior to the refresh of the Vault. If required, you must add these connections manually.</p>
    </div>
  </div>
</div>



## Restore the AS2 Connections for a Vault

To restore the AS2 Connections for your Vault, navigate to **Admin > Settings > AS2 Connection Settings** and select **Restore AS2 Connections**.


<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: 
Vault does not restore the following:</p>
<ul>
  <li>The values of any custom fields.</li>
  <li>The values of any system fields that are unrelated to AS2 Connections.</li>
</ul>
    </div>
  </div>
</div>



**Result**

Vault restores the following for each _AS2 Connection_ that was registered to the Vault's DNS name prior to the sandbox refresh:

* The values of all standard fields.
* The Partner and Sponsor Certificates.
* All records in the _Connections Allowed_ list. \
Vault sets the name of these records to `IP` and numbers them sequentially. For example, `IP 1`, `IP 2`, `IP 3`, and so on.
*  _API Name_ field: Vault creates a unique name for the restored AS2 Connection. You can change this if your Vault requires a different _API Name_ value.
* Sets the _AS2 Vault Gateway State_ to _Registered_.
* Sets the _AS2 Additional ACK Stages_<sup>1</sup> field to _PRE_ACK_ for synchronous connections, and _PRE_ACK_ and _HANDSHAKE_ for asynchronous connections.
<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: <sup>1</sup> As this setting is not stored in the gateway, Vault does not restore the original field value.</p>
    </div>
  </div>
</div>




Once all AS2 Connections are restored, Vault sends a notification that the refresh process is completed.

Should Vault fail to restore one (1) or more AS2 Connections, Vault also sends an email notification.

### Next Steps

To ensure your restored AS2 Connections function correctly, we recommend you run the _Sync Connection to Gateway_ action on each restored connection.
