How to automate backup configuration settings for MD Core? (API)
This article applies to all MetaDefender Core V4 and V5 releases deployed on Windows.
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: https://www.opswat.com/docs/mdcore/metadefender-core#adminexportv2
Prerequisites
- A valid MetaDefender Core API key (
session_id
), which the user has received from the post request for Login https://www.opswat.com/docs/mdcore/metadefender-core#userlogin
Export settings:

Response example

Bash script template:

Import settings
- The prerequisites for this also required the login
session_id
to make the API call. For reference: https://www.opswat.com/docs/mdcore/metadefender-core#adminimportv2

Import request

Include the file
Bash scripts template:

If you have followed all of the steps above but cannot set the desired RAM Drive security permissions, please follow these instructions on How to Create Support Package With Bundle Tools? before creating a support case or chatting with our support engineer.
Was this page helpful?