<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Destinare_i_log_compressi_con_logrotate</id>
	<title>Destinare i log compressi con logrotate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Destinare_i_log_compressi_con_logrotate"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Destinare_i_log_compressi_con_logrotate&amp;action=history"/>
	<updated>2026-05-09T13:41:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Destinare_i_log_compressi_con_logrotate&amp;diff=5970&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 12:03, 18 November 2008</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Destinare_i_log_compressi_con_logrotate&amp;diff=5970&amp;oldid=prev"/>
		<updated>2008-11-18T12:03:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:03, 18 November 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;umount /mnt/backup-smb&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;umount /mnt/backup-smb&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E&#039; possibile inserire il destinatario sia nella sezione generica o in una sezione specifica per ogni log, tramite il comando:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; mail user@domain.dom&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Destinare_i_log_compressi_con_logrotate&amp;diff=5969&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: New page: Se si vogliono inviare i log compressi con logrotate via email o tramite uno script, dichiarare il comando da usare per il trattamento in   /etc/cron.daily/logrotate  con l&#039;opzione   -m  E...</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Destinare_i_log_compressi_con_logrotate&amp;diff=5969&amp;oldid=prev"/>
		<updated>2008-11-18T12:01:29Z</updated>

		<summary type="html">&lt;p&gt;New page: Se si vogliono inviare i log compressi con logrotate via email o tramite uno script, dichiarare il comando da usare per il trattamento in   /etc/cron.daily/logrotate  con l&amp;#039;opzione   -m  E...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Se si vogliono inviare i log compressi con logrotate via email o tramite uno script, dichiarare il comando da usare per il trattamento in&lt;br /&gt;
&lt;br /&gt;
 /etc/cron.daily/logrotate&lt;br /&gt;
&lt;br /&gt;
con l&amp;#039;opzione &lt;br /&gt;
 -m&lt;br /&gt;
&lt;br /&gt;
Esempio:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
test -x /usr/sbin/logrotate || exit 0&lt;br /&gt;
/usr/sbin/logrotate -m /usr/local/sbin/archive_log /etc/logrotate.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Per veder come vengono passati gli argomenti, ecco un esempio:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
mount -t cifs //192.168.190.10/Hawaii_Backup$ \&lt;br /&gt;
        /mnt/backup-smb/ -o credentials=/etc/samba/credentials || \&lt;br /&gt;
        (echo Cannot mount share. Aborting; exit 1)&lt;br /&gt;
&lt;br /&gt;
cd /&lt;br /&gt;
#echo $@ &amp;gt;  /mnt/backup-smb/log/arguments&lt;br /&gt;
#echo $0 &amp;gt;&amp;gt; /mnt/backup-smb/log/arguments&lt;br /&gt;
#echo $1 &amp;gt;&amp;gt; /mnt/backup-smb/log/arguments&lt;br /&gt;
#echo $2 &amp;gt;&amp;gt; /mnt/backup-smb/log/arguments&lt;br /&gt;
#echo $3 &amp;gt;&amp;gt; /mnt/backup-smb/log/arguments&lt;br /&gt;
TIMESTAMP=`date +&amp;quot;%Y-%m-%d-%H-%M&amp;quot;`&lt;br /&gt;
FILENAME=`basename $2`&lt;br /&gt;
cat -   &amp;gt;  /mnt/backup-smb/log/$FILENAME-$TIMESTAMP&lt;br /&gt;
bzip2 -9 /mnt/backup-smb/log/$FILENAME-$TIMESTAMP&lt;br /&gt;
&lt;br /&gt;
umount /mnt/backup-smb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>