<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GAIA Backups in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7542#M355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This fixes it – I’ll update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/find /var/log/ -mtime +30 -wholename "/var/log/CPbackup/backups/*.tgz" -delete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 13:58:00 GMT</pubDate>
    <dc:creator>Juan_Concepcion</dc:creator>
    <dc:date>2018-05-09T13:58:00Z</dc:date>
    <item>
      <title>GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7538#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;There exists an issue in GAIA presently where backups just continuously grow and cannot be setup to auto delete.&amp;nbsp; The result is that the /var/log/ directory becomes full and then causes all types of application issues.&amp;nbsp; The following will run every&amp;nbsp; 2 months and auto clean any backups older than the specified number of days (30 days in example below). &amp;nbsp;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.&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 9.0pt; color: #454545;"&gt;In Gaia Clish, create a root user without capability to login:&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 9.0pt; color: #454545;"&gt;HostName&amp;gt; add user jobuser uid 0 homedir /home/jobuser&lt;BR /&gt; HotsName&amp;gt; save config&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Note: Avoid giving the user a password and avoid giving the user any Gaia roles as they are not needed.&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 9.0pt; color: #454545;"&gt;In Expert mode, create a cron job for this user:&lt;BR /&gt; [Expert@HostName]# crontab -u jobuser -e&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-left: .375in; font-size: 9.0pt; color: #454545;"&gt;(This creates and allows you to edit the file /var/spool/cron/jobuser).&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;Syntax for Entry in crontab:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE style="border: 1pt solid #A3A3A3;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Minute&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Hour&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Day of Month&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Day of week | Command&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;1,3,5,7,9,11&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | /usr/bin/find /var/log/ -mtime +30 -wholename “/var/log/CPbackup/backups/*.tgz" -delete&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;Save the file: shift+: then x!&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 9.0pt; color: #454545;"&gt;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)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 05:00:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7538#M351</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2017-10-13T05:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7539#M352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked successfully after a slight change to the command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/find &lt;SPAN style="color: #454545; background-color: #ffffff;"&gt;/var/log/CPbackup/backups/&lt;/SPAN&gt; -mtime +30 -name "*.tgz" -delete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:18:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7539#M352</guid>
      <dc:creator>Kalyan_Addenki</dc:creator>
      <dc:date>2018-05-09T13:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7540#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked for me can you provide error you are getting or simply doesn’t clean up as expected??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:46:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7540#M353</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2018-05-09T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7541#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]# /usr/bin/find /var/log/ -mtime +30 -name "/var/log/CPbackup/backups/*.tgz" -delete&lt;BR /&gt;/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'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:52:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7541#M354</guid>
      <dc:creator>Kalyan_Addenki</dc:creator>
      <dc:date>2018-05-09T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7542#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This fixes it – I’ll update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/find /var/log/ -mtime +30 -wholename "/var/log/CPbackup/backups/*.tgz" -delete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:58:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7542#M355</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2018-05-09T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7543#M356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 14:05:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/7543#M356</guid>
      <dc:creator>Kalyan_Addenki</dc:creator>
      <dc:date>2018-05-09T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/116710#M16468</link>
      <description>&lt;P&gt;05 11 * * * /usr/bin/find /var/log/ -wholename "/var/log/CPbackup/backups/*.tgz" -delete&lt;/P&gt;&lt;P&gt;This work, every day delete old tgz file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 09:12:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/116710#M16468</guid>
      <dc:creator>simoneciotti</dc:creator>
      <dc:date>2021-04-23T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: GAIA Backups</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/116719#M16470</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 11:32:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/GAIA-Backups/m-p/116719#M16470</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-04-23T11:32:08Z</dc:date>
    </item>
  </channel>
</rss>

