- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FortiSOAR backup and restore: what are the best practices
Hi Experts!
Kindly suggest some best practices to configure the backup and restore mechanism of the FortiSOAR data and configuration file?
The idea is to use the backed-up file (data and configuration) and restore the FortiSOAR again with minimum downtime.
BR,
MFaruqi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--exclude-audit is available from version 7.5.0.
If you are not using FortiSOAR version 7.5.0 then use command :- csadm db --backup <path of destination directory> --exclude-workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding Further: The backed-up file will be saved on some NFS drive in the Data Storage Nodes. In case of the disaster, the latest backed-up files can be retrieved from the Data Storage and restore the operation of the FortiSOAR with minimum downtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
For a deeper understanding of the backup-restore process, please refer to the documentation.
You can find detailed steps at this link: https://docs.fortinet.com/document/fortisoar/7.5.0/administration-guide/804260/backing-up-and-restor...
Before proceeding with the backup, ensure the following:
1. Confirm that no playbook is running
2. Stop data ingestion and schedules
As you are planning to use the NFS, in the csadm backup cmd provides the path of the mount directory, so the backup file gets created to the mounted NFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @MuhammadFaruqi1 ,
As per your requirement here are the suggestions
- Create a CRON job to perform backup
- Take full backup ( configuration files, MMD, views and data ) with command # csadm db --backup and Only configuration backup (configuration files, MMD and views backup) with command # csadm db --backup-config
- Full backup should be taken only once per day as performing backup may cause performance issue
- Configuration backup can be taken any number of times in a day
We also recommend taking snapshot periodically. And if system is ESXI VM number of snapshot should be not more than 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Experts,
As per the official documentation shared in above replies, it states that:
"Optionally, you can specify the --exclude-workflow option to exclude all the "Executed Playbook Logs" and the --exclude-audit option to exclude all the "Executed Audit Logs" from the backup. Executed playbook and audit logs are primarily meant for debugging so they are not a very critical component to be backed up. However, they constitute a major part of the database size, so excluding them from the backup reduces time and space needed for the backup. For example, to exclude all the "Executed Playbook Logs" from the backup, type the command as follows:
# csadm db --backup [<backup_dir_path>] --exclude-workflow
Now if I want to exclude workflow logs and audit logs in the same command, how can I do this?
For example: Can I write below command to exclude workflow and audit logs:
# csadm db --backup [<backup_dir_path>] --exclude-workflow; --exclude-audit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Secondly, I would like to know this if I am only keeping the backup file that is being generated using the command # csadm db --backup, then the generated backup also contains the configuration backup as well? I mean, if I restore this backup, the data and the configuration will be restored on the FSR?
If not, do we need to separately run the command # csadm db --backup-config for configuration backup?
Regards,
MFaruqi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
To use both options, use the below CLI:
#csadm db --backup BackupDirectoryPath --exclude-workflow --exclude-audit
This command will take the backup of your configuration files along with DB
If you only want to take a backup of the configurations file then only take a backup using CLI #csadm db --backup-config
Created on ‎05-05-2024 11:05 PM Edited on ‎05-05-2024 11:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
the command: #csadm db --backup BackupDirectoryPath --exclude-workflow --exclude-audit didnt work for me. I changed the BackupDirectoryPath with the actual directory path in my system. Screen shot is attached for your reference. Kindly suggest further, I shall be extremely grateful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--exclude-audit is available from version 7.5.0.
If you are not using FortiSOAR version 7.5.0 then use command :- csadm db --backup <path of destination directory> --exclude-workflow
