Knowledge Base
v5.14.1
Search this version
Knowledge Base
Knowledge Base
Configuration and Settings
Errors and Troubleshooting
Features and Functionality
Licensing, Setup and Deployment
Updates, Patches and Bug Fixes
Version Upgrades
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to automate backup configuration settings for MD Core? (API)
Copy Markdown
Open in ChatGPT
Open in Claude
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_idto 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.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Why I can't push configuration due to password storage?Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
