Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Deleting older backups from scheduled backup option in web UI

Jump to solution

Hello everyone,

 

I know CP does not support scripts officially, so just wondering, is there any supported way to delete any scheduled backup from web UI thats say older than 90 days? I have a customer that is running scheduled backup locally on their 16000 appliance and they dont wish to keep anything for more than 3 months, but I cant find any option to do so either in web UI or from object properties in dashboard.

 

Im really looking for something similar to R77.x days from database revision, where you could choose when you wanted to start deleting old revisions...

 

Possible?

 

Any help would be appreciated.

 

Ty!

 

Andy

0 Kudos
1 Solution

Accepted Solutions
Highlighted

You can try and run this command, manually, after backing up the files in another location.

find/var/log/CPbackup/backups/ *-mtime +90 -exec rm {} \;

If it gives you what you want, you can schedule a crontab following :

https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...

View solution in original post

8 Replies
Highlighted
Sapphire

I would suggest to call a scheduled script in GAiA WebGUI that removes old backups.

0 Kudos
Highlighted

Thanks Albrecht...can you please tell me which script you are referring to? I dont see anything like that in web UI.

0 Kudos
Highlighted
Sapphire

Sorry - i suggested to write a script in bash and clish and call it scheduled from System Management > Job Scheduler.

0 Kudos
Highlighted

Ok, I see what you mean now :). I know people do that, but I was hoping there was something "built in" that does not require doing this, but I guess not...

 

Andy

0 Kudos
Highlighted

Sorry, not the best in scripting...do you know of any such script I can use or does one exist that CP customers would use for this purpose that can either be imported from cli or GUI or ran as a cron job?

 

Thanks in advance.

 

Andy

0 Kudos
Highlighted

You can try and run this command, manually, after backing up the files in another location.

find/var/log/CPbackup/backups/ *-mtime +90 -exec rm {} \;

If it gives you what you want, you can schedule a crontab following :

https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...

View solution in original post

Highlighted

Thanks for the info...so that command would search for any backup older than 90 days I presume? I would have to read the sk and see what the steps are.

 

Andy

0 Kudos
Highlighted
Employee
Employee

We have added to R81 the ability to limit the number of Snapshots to be saved, so that when there is more than the set number, the oldest will be deleted.
For Backup there is no such capability yet, however, it is planned for future versions.