How to automate backup configuration settings for MD Core? (API)

This article provides a simple Bash script template that allows users to automate the export of MetaDefender Core configuration using the /admin/export/v2 API endpoint. For reference: GET - Export configurationAPI

Prerequisites

  • A valid MetaDefender Core API key (session_id), which the user has received from the post request for Login POST - LoginAPI

Export settings:

Response example

Response example

Bash script template:

Import settings

Import request

Import request

Include the file

Include the file

Bash scripts template:

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard