Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: Scheduling MailMarshal (SEG) or ECM Configuration Backup

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)
  • Trustwave ECM/MailMarshal Exchange 7.X

Question:

  • How can I back up MailMarshal configuration automatically?
  • How can I schedule regular backups of MailMarshal configuration?

Procedure:

You should back up your MailMarshal configuration settings regularly. You may want to keep a history of backups, so that you can revert or restore any changes more easily if required.

SEG 7.2 and above

In SEG 7.2 and above, automated configuration backup is available from the Configurator or Management Console, Array Properties > Backup page. You can choose to back on a schedule and/or after committing configuration. Daily backup is enabled by default.

Earlier versions

You can accomplish this task using the MailMarshal Configuration Export Tool (mmexportcfg.exe or MEXexportcfg.exe) This tool allows you to export and import MailMarshal configuration settings from a command line interface or batch file. The input or output is an XML file that contains the MailMarshal configuration information.

You can create a scheduled task using a simple batch file to create a date-stamped backup of MailMarshal configuration.

  1. Run the date command to determine your regional date format:
    C:\> date /T
    • Depending on regional settings the date may be returned as MM/DD/YYYY or DD/MM/YYYY and the day of the week may be included.
  2. Use the Windows date substring functions to generate a date stamp in any format you want.
    • The syntax %date:~start,characters% allows you to extract substrings from the Windows Date environment variable.
    • The following examples show substring usage based on different regional date formats. All examples return the string 2009-08-16
      • Sun 16/08/2009: %date:~10,4%-%date:~7,2%-%date:~4,2%
      • Sun 08/16/2009: %date:~10,4%-%date:~4,2%-%date:~7,2%
      • 08/16/2009: %date:~6,4%-%date:~0,2%-%date:~3,2%
  3. A sample file is as follows:

cd "c:\Program Files\Marshal\MailMarshal"
mmexportcfg %date:~10,4%-%date:~4,2%-%date:~7,2%-mmbackup.xml

Replace the first line with the location of your MailMarshal installation. Specify the correct executable name (mmexportcfg.exe or MEXexportcfg.exe).

The result of running this task will be a date-stamped XML file, such as 2009-08-16-mmbackup.xml

Notes:

  • You must use the version of mmexportcfg.exe or MEXexportcfg.exe that matches your installed version of MailMarshal.
  • For more details of the options available with mmexportcfg.exe or MEXexportcfg.exe, see "Using the Configuration Export Tool" in the User Guide.
  • For details of additional items you should back up to have a complete record of configuration, see "Backing Up and Restoring the Configuration" in the User Guide.

 

Thanks to Trustwave Forum users for suggesting the date format information.


To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.