- Products
- Learn
- Local User Groups
- Partners
- More
What’s New in Device Diagnostics?
Dec 2nd @ 5pm CET / 11am EST
AI Security Masters
Security in the Pace of AI:
From Threat to Force Multiplier
CPX is Back!
Join us in Las Vegas, Vienna, and/or Bangkok!
Check Point Named a Leader
The Forrester Wave:
Enterprise Firewall Solutions, Q4 2026
What’s New in Agentic Network Orchestration
CheckMates Go:
Fun Ding
There exists an issue in GAIA presently where backups just continuously grow and cannot be setup to auto delete. The result is that the /var/log/ directory becomes full and then causes all types of application issues. The following will run every 2 months and auto clean any backups older than the specified number of days (30 days in example below). The reason this method is used is because the normal cron scheduler will not accept the command through webui or cli - therefore this will use the native crontab capabilities of linux to assist in cleaning up older backups.
In Gaia Clish, create a root user without capability to login:
HostName> add user jobuser uid 0 homedir /home/jobuser
HotsName> save config
Note: Avoid giving the user a password and avoid giving the user any Gaia roles as they are not needed.
In Expert mode, create a cron job for this user:
[Expert@HostName]# crontab -u jobuser -e
(This creates and allows you to edit the file /var/spool/cron/jobuser).
Syntax for Entry in crontab:
Minute | Hour | Day of Month | Month | Day of week | Command |
0 | 0 | 1 | 1,3,5,7,9,11 | * | /usr/bin/find /var/log/ -mtime +30 -wholename “/var/log/CPbackup/backups/*.tgz" -delete |
Save the file: shift+: then x!
This will clean up backups older than 30 days @ midnight on the specified day every other month (in this example on the 1st day every two months)
It worked successfully after a slight change to the command
/usr/bin/find /var/log/CPbackup/backups/ -mtime +30 -name "*.tgz" -delete
Worked for me can you provide error you are getting or simply doesn’t clean up as expected??
--Juan
Here is the error:
]# /usr/bin/find /var/log/ -mtime +30 -name "/var/log/CPbackup/backups/*.tgz" -delete
/usr/bin/find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-name /var/log/CPbackup/backups/*.tgz' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ /var/log/CPbackup/backups/*.tgz'.
This fixes it – I’ll update
/usr/bin/find /var/log/ -mtime +30 -wholename "/var/log/CPbackup/backups/*.tgz" -delete
That worked!
05 11 * * * /usr/bin/find /var/log/ -wholename "/var/log/CPbackup/backups/*.tgz" -delete
This work, every day delete old tgz file
You do not want to delete all but the newest file, some rotation is advised. In case your OS is corrupted, the latest backup is likely to have those corrupted files, but several previous might not.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 17 | |
| 12 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
Wed 02 Dec 2026 @ 02:00 PM (CET)
E-Mail-Agent-Hijacking: E-Mail-Sicherheit im Zeitalter der KI neu überdenkenWed 02 Dec 2026 @ 02:00 PM (GMT)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityWed 02 Dec 2026 @ 03:30 PM (GMT)
The New DDoS Reality: Autonomy, Scale, and the Future of DefenseWed 02 Dec 2026 @ 11:00 AM (PST)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityWed 02 Dec 2026 @ 02:00 PM (EST)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityWed 02 Dec 2026 @ 02:00 PM (CET)
E-Mail-Agent-Hijacking: E-Mail-Sicherheit im Zeitalter der KI neu überdenkenWed 02 Dec 2026 @ 02:00 PM (GMT)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityWed 02 Dec 2026 @ 03:30 PM (GMT)
The New DDoS Reality: Autonomy, Scale, and the Future of DefenseWed 02 Dec 2026 @ 11:00 AM (PST)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityWed 02 Dec 2026 @ 02:00 PM (EST)
Why Email Agent Hijacking Marks the End of Post-Delivery Email SecurityAbout CheckMates
Learn Check Point
Advanced Learning
WE SECURE YOUR AI TRANSFORMATION