- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap 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 |
|---|---|
| 25 | |
| 14 | |
| 13 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
Wed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY