<?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 Trasfer logs via sftp older than 15 days in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Trasfer-logs-via-sftp-older-than-15-days/m-p/134105#M73927</link>
    <description>&lt;P&gt;Greetings,&lt;BR /&gt;I'm trying to create a bash script that makes me a single .tar file of logs older than 15 days and sends them to me via sftp.&lt;BR /&gt;But I can't get the creation of the .tar file to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;find /var/log -type f -mtime +30 | xargs -0 tar -zcf file_compress.tar.gz;&lt;/P&gt;&lt;P&gt;export SSHPASS=XXXXXX&lt;BR /&gt;sshpass -e sftp -oBatchMode=no -b - XXXXXXX@XXXXXX &amp;lt;&amp;lt; !&lt;BR /&gt;cd Incoming&lt;BR /&gt;put file_compress.tar.gz&lt;BR /&gt;bye&lt;BR /&gt;!&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 18:26:41 GMT</pubDate>
    <dc:creator>fwvpnitaly</dc:creator>
    <dc:date>2021-11-15T18:26:41Z</dc:date>
    <item>
      <title>Trasfer logs via sftp older than 15 days</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Trasfer-logs-via-sftp-older-than-15-days/m-p/134105#M73927</link>
      <description>&lt;P&gt;Greetings,&lt;BR /&gt;I'm trying to create a bash script that makes me a single .tar file of logs older than 15 days and sends them to me via sftp.&lt;BR /&gt;But I can't get the creation of the .tar file to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;find /var/log -type f -mtime +30 | xargs -0 tar -zcf file_compress.tar.gz;&lt;/P&gt;&lt;P&gt;export SSHPASS=XXXXXX&lt;BR /&gt;sshpass -e sftp -oBatchMode=no -b - XXXXXXX@XXXXXX &amp;lt;&amp;lt; !&lt;BR /&gt;cd Incoming&lt;BR /&gt;put file_compress.tar.gz&lt;BR /&gt;bye&lt;BR /&gt;!&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:26:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Trasfer-logs-via-sftp-older-than-15-days/m-p/134105#M73927</guid>
      <dc:creator>fwvpnitaly</dc:creator>
      <dc:date>2021-11-15T18:26:41Z</dc:date>
    </item>
  </channel>
</rss>

