<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Money No Honey &#187; MailWatch</title>
	<atom:link href="http://blog.infinity.idv.tw/index.php/category/linux/mailwatch/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinity.idv.tw</link>
	<description>Just Another Beginning</description>
	<lastBuildDate>Sat, 28 Jan 2012 18:25:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下讓系統自動刪除MailWatch 30天後的LOG資料</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/12/17/linux%e4%b8%8b%e8%ae%93%e7%b3%bb%e7%b5%b1%e8%87%aa%e5%8b%95%e5%88%aa%e9%99%a4mailwatch-30%e5%a4%a9%e5%be%8c%e7%9a%84log%e8%b3%87%e6%96%99/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/12/17/linux%e4%b8%8b%e8%ae%93%e7%b3%bb%e7%b5%b1%e8%87%aa%e5%8b%95%e5%88%aa%e9%99%a4mailwatch-30%e5%a4%a9%e5%be%8c%e7%9a%84log%e8%b3%87%e6%96%99/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 09:57:50 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[MailWatch]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[維護]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/12/17/linux%e4%b8%8b%e8%ae%93%e7%b3%bb%e7%b5%b1%e8%87%aa%e5%8b%95%e5%88%aa%e9%99%a4mailwatch-30%e5%a4%a9%e5%be%8c%e7%9a%84log%e8%b3%87%e6%96%99/</guid>
		<description><![CDATA[<p>保留30天資料。 </p>
<p>建立連線MYSQL Shell </p>
<p>vi /usr/local/bin/DelMailScannerLog.sh   =====================================================    #!/bin/sh    mysql -uroot -p2duxaiux &#60; delmail.sql &#62;&#62; dellog.txt    ===================================================== </p>
<p>建立sql指令，刪除30天後的資料   vi /usr/local/bin/delmail.sql    =====================================================    use mailscanner    delete from maillog where date &#60; DATE_SUB(curdate(), INTERVAL 30 DAY);   [...]]]></description>
			<content:encoded><![CDATA[<p>保留30天資料。 </p>
<p>建立連線MYSQL Shell </p>
<p>vi /usr/local/bin/DelMailScannerLog.sh   <br />=====================================================    <br />#!/bin/sh    <br />mysql -uroot -p2duxaiux &lt; delmail.sql &gt;&gt; dellog.txt    <br />===================================================== </p>
<p>建立sql指令，刪除30天後的資料   <br />vi /usr/local/bin/delmail.sql    <br />=====================================================    <br />use mailscanner    <br />delete from maillog where date &lt; DATE_SUB(curdate(), INTERVAL 30 DAY);    <br />===================================================== </p>
<p>每日am12:30自動執行   <br />=====================================================    <br />#維護MailWatchLog 保留30天資料    <br />30 0 * * * root /usr/local/bin/DelMailScannerLog.sh    <br />=====================================================</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/12/17/linux%e4%b8%8b%e8%ae%93%e7%b3%bb%e7%b5%b1%e8%87%aa%e5%8b%95%e5%88%aa%e9%99%a4mailwatch-30%e5%a4%a9%e5%be%8c%e7%9a%84log%e8%b3%87%e6%96%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

