---
title: How to backup the SecurityGateway server configuration, messages, transcripts, and/or archive stores.
description: There are multiple ways backup SecurityGateway.  The steps below details how backup using the SecurityGateway web interface, using SecurityGateway's SGDBTool application, and how to manually backup important SecurityGateway directories.
---

[Skip to content](https://knowledge.mdaemon.com/how-to-backup-securitygateway#main-content)

[![](https://knowledge.mdaemon.com/hs-fs/hubfs/MDaemon-Technologies_logo.png?width=200&height=150&name=MDaemon-Technologies_logo.png)](https://mdaemon.com/)

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)

Open main navigation

Close main navigation

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)
- [Contact Us](https://mdaemon.com/pages/contact-us)

[Contact Us](https://mdaemon.com/pages/contact-us)

 Knowledge Base

- There are no suggestions because the search field is empty.

1. [Knowledge Base Home](https://knowledge.mdaemon.com/?hsLang=en)
2. [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)

# How to backup the SecurityGateway server configuration, messages, transcripts, and/or archive stores.

## There are multiple ways backup SecurityGateway. The steps below details how backup using the SecurityGateway web interface, using SecurityGateway's SGDBTool application, and how to manually backup important SecurityGateway directories.

Follow the steps below to backup SecurityGateway's database or configuration in the web interface:

1. Login to SecurityGateway as the global administrator account.
2. Select **Setup/Users**
3. Select **Database**
4. Select **Backup**
5. Choose the option to backup. 
     - Select **Click here to backup/export configuration data now** to create a backup of the SecurityGateway configuration.
     - Select **Click here to backup entire database now** to backup the entire database.
     - Select **Click here to backup archive stores now** to backup the Archive Stores.

This will create an FBK file for the configuration/database backup in the \\SecurityGateway\\Backup\\ folder and Archive Stores backup are stored in the \\SecurityGateway\\Backup\\ArchiveStores\\ directory.

Alternatively, the SGDBTool application included with SecurityGateway can backup the configuration/database.  This command line tool can be useful to perform tasks while the SecurityGateway service is stopped.

To backup the SecurityGateway configuration/database using the SGDBTool application, follow the steps below.

1. Stop the SecurityGateway service.
2. Open a Command Prompt window.
3. Navigate to the \\SecurityGateway\\App directory.
4. Choose the option to either backup the full database or server configuration.  
     - Enter **sgdbtool backup sgbackup.fbk** to backup the full database configuration. 
           - sgbackup.fbk can be changed to any desired filename.
     - Enter **sgdbtool export sgexport.fbk** to backup the server configuration. 
           - sgexport.fbk can be changed to any desired filename.
5. Press Enter

The backup/export fbk file will be written to the \\SecurityGateway\\App\\ directory.

This process does not backup the message data, message transcripts, and other valuable data that administrators may wish to backup. 

This data can be manually backed up by following the steps below.

1. Select **Setup / Users**
2. Select **System**
3. Select **Directories**
4. Copy the desired directories to a secure location.  
     - Message Data
     - Message Logs \\ SMTP Transcripts
     - Attachments
     - Logs
     - Sieve Executable Path

 

**Additional Comments**

For increased performance, It is recommended to complete a backup and restore at annual intervals to cleanup transactional data.

- [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#main-content)

    - [Mobile Device Management](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#mobile-device-management)
- [MDaemon AntiVirus (SecurityPlus)](https://knowledge.mdaemon.com/mdaemon-antivirus-securityplus?hsLang=en)
- [ActiveSync for MDaemon](https://knowledge.mdaemon.com/activesync-for-mdaemon?hsLang=en)
- [MDaemon Connector for Outlook (Outlook Connector)](https://knowledge.mdaemon.com/mdaemon-connector-for-outlook-outlook-connector?hsLang=en)
- [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)
- [RelayFax Network Software](https://knowledge.mdaemon.com/relayfax-network-software?hsLang=en)

[![Chill listening crop-3](https://knowledge.mdaemon.com/hs-fs/hubfs/belch.io/template-assets/MDaemon-Technologies_logo.png?width=199&height=41&name=MDaemon-Technologies_logo.png "Chill listening crop-3")](https://www.mdaemon.com)

[Knowledge Base Home](https://knowledge.mdaemon.com?hsLang=en)

<https://www.youtube.com/c/MDaemonTechnologies> <https://www.linkedin.com/company/mdaemon-technologies/> <https://www.facebook.com/MDaemon.Technologies/> <https://www.twitter.com/MDaemon_Email>

Copyright © 2025, MDaemon Technologies