- Products
- Learn
- Local User Groups
- Partners
- More
The Great Exposure Reset
24 February 2026 @ 5pm CET / 11am EST
CheckMates Fest 2026
Watch Now!AI Security Masters
Hacking with AI: The Dark Side of Innovation
CheckMates Go:
CheckMates Fest
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 |
|---|---|
| 57 | |
| 43 | |
| 15 | |
| 14 | |
| 14 | |
| 11 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |
Thu 12 Feb 2026 @ 05:00 PM (CET)
AI Security Masters Session 3: AI-Generated Malware - From Experimentation to Operational RealityFri 13 Feb 2026 @ 10:00 AM (CET)
CheckMates Live Netherlands - Sessie 43: Terugblik op de Check Point Sales Kick Off 2026Thu 19 Feb 2026 @ 03:00 PM (EST)
Americas Deep Dive: Check Point Management API Best PracticesThu 12 Feb 2026 @ 05:00 PM (CET)
AI Security Masters Session 3: AI-Generated Malware - From Experimentation to Operational RealityFri 13 Feb 2026 @ 10:00 AM (CET)
CheckMates Live Netherlands - Sessie 43: Terugblik op de Check Point Sales Kick Off 2026Thu 19 Feb 2026 @ 03:00 PM (EST)
Americas Deep Dive: Check Point Management API Best PracticesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY