- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Announcing Quantum R82.10!
Learn MoreOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi all,
I am writing a script to automate mds backup.
will running mds_backup with -b parameter will create any problems?
we are planning to run this script in midnight when nobody is login into management. for precaution measures, we will enable the setting to log out user from smart console after specific idle time-out.
Kindly also let me know if any suggestions please.
Thanks
No need for a script, a simple one-liner is enough. I'm using the -b parameter all the time without any issues.
Just enter this line into the GAiA job scheduler and have it executed at midnight:
. /opt/CPshrd-R??/tmp/.CPprofile.sh; mdsstop; sleep 120; /opt/CPmds-R??/scripts/mds_backup -l -b -d /var/log/mdsbackups/ 2>/dev/null; sleep 120; mdsstart -s
Manually create the folder /var/log/mdsbackups and use another one-liner to clean up the number of mds_backups in it:
ls -tl /var/log/mdsbackups/*.tgz | tail -n +10 | xargs rm -f
Additional info: How to reduce the size of mds_backup file (sk103115)
hi
is there any specific reason to run a mdsstop /mdsstart ?
This might be very time consuming until every process is back and has potential to loose logs.
We run this one and did not experience any issue:
mds_backup -g -b -L best
Regards
Hi Danny,
I tried using the below command in Job scheduler but it is not working. Any suggestions on this?
. /opt/CPmds-R80.30/scripts/mds_backup -l -b -s -d /var/log/mdsbackups/ 2>/dev/null; sleep 120;
Regards,
Sanjay S
You need to load the CP environment first: source /etc/profile.d/CP.sh
Hi Danny,
I used the below and still no back up in the mentioned path.
. /etc/profile.d/CP.sh; /opt/CPmds-R80.30/scripts/mds_backup -l -b -s -d /var/log/mdsbackups/ 2>/dev/null; sleep 120;
Any thoughts?
Regards,
Sanjay S
Of course Gaia backup is also recommended. However, that‘s another backup option the thread starter didn‘t ask for.
Hello Kaspars,
When you mention Gaia Backup, you mean System Backup (in WebUi) and/or backup/restore in clish ?
I could not find any documentation beside mds_backup tool for backup MDS, and that's why i'm asking 🙂 If so, does it stops the domains in the process ?
Thanks for your confirmation.
Bruno Petrónio
It doesn't matter if you use GAIA WebUI or CLI both will create the same result.
i.e in CLI you can just type
backup local
This directory shows which products will be backed up:
Thanks,
I would guess we don't have to manually change this file to setup it to a mds, but instead the device will recognize the product type, in this case a MDS ?
I just found a reference in a backup log to a scheme used in my MDS Gaia Backup (/var/CPbackup/schemes/mds.cpbak), i dont find this file in any other Product, SMS or SG, so i would guess its automatic 🙂
That's correct - essentially you run the same command on the gateway and MDS and device itself will now what to back up
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 22 | |
| 15 | |
| 11 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Fri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY