<?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>New MAIDSAN Server Diary &#187; WordPress</title>
	<atom:link href="http://blog.maidsan.tk/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.maidsan.tk</link>
	<description>とあるサーバエンジニアのログ置き場</description>
	<lastBuildDate>Sat, 08 Oct 2011 17:32:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress 2.8.2にアップデート完了</title>
		<link>http://blog.maidsan.tk/2009/08/03/344</link>
		<comments>http://blog.maidsan.tk/2009/08/03/344#comments</comments>
		<pubDate>Sun, 02 Aug 2009 17:10:11 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[vsFTPD]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[自動アップデート]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=344</guid>
		<description><![CDATA[WordPress2.8.2がリリースされていたので、アップデートしてみる。 自動アップグレードを使用してのアップデート作業で、 普段のプラグインのアップデートと変わりなし。 公式には、アップデートをする際、DBとファイ [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress2.8.2がリリースされていたので、アップデートしてみる。</p>
<p><a class="thickbox" title="WP2.8.2" href="http://blog.maidsan.tk/wp-content/uploads/2009/08/WP2.8.2.jpg"><img class="attachment wp-att-343" src="http://blog.maidsan.tk/wp-content/uploads/2009/08/WP2.8.2.jpg" alt="WP2.8.2" width="150" height="116" /></a></p>
<p>自動アップグレードを使用してのアップデート作業で、<br />
普段のプラグインのアップデートと変わりなし。<br />
公式には、アップデートをする際、DBとファイルのバックアップと<br />
全プラグインの停止後に作業を行うよう推奨しているが、<br />
面倒なので、全ての手順すっ飛ばして作業ヽ(ﾟ∀ﾟ)ノ </p>
<p>特に問題は起きてないよう見受けられるが、<br />
もしかしたら後々なんかでてくるかもしれない。</p>
<p>■参考URL</p>
<ul>
<li><a href="http://gerenuk.crazyphoto.org/2009/06/12/650/">WordPress 2.8にアップグレードする前と後に知っておくべき10個のこと</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/08/03/344/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressの定期バックアップ</title>
		<link>http://blog.maidsan.tk/2009/03/17/248</link>
		<comments>http://blog.maidsan.tk/2009/03/17/248#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:32:42 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[自宅サーバ]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=248</guid>
		<description><![CDATA[WordPressのバックアップについての技術メモ。 WordPressを運用する上で、バックアップが必要なのは以下の郡。 1. WordPressのDB(MySQL) 2. /(WordPressPath)/wp-co [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressのバックアップについての技術メモ。</p>
<p>WordPressを運用する上で、バックアップが必要なのは以下の郡。</p>
<p>1. WordPressのDB(MySQL)<br />
2. /(WordPressPath)/wp-content/uploads/ 以下にあるファイル<br />
3. /(WordPressPath)/　以下のファイル全部<br />
<span id="more-248"></span><br />
バックアップの優先度は当然、DBが一番に優先される。</p>
<p>2番目は、記事中の画像などがアップロードされるuploadsディレクトリ。<br />
これも、DB程ではないにしろ、高頻度でバックアップが必要。</p>
<p>3番目は、WordPress全体。<br />
プラグインディレクトリの中身は、頻繁でないにしろ、<br />
変化があるものなので、1ヶ月に一回か、数ヶ月に一回のレベルでバックアップを実行する。</p>
<p>DBのバックアップは、プラグインで自動化してくれるものもあるが、<br />
maidsan.tkではスクリプトを書いて、crontabに設定を書いて回してる。</p>
<p>以下、DB自動バックアップスクリプト。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">################################################################</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#       MySQL_DUMP Shell</span>
<span style="color: #666666; font-style: italic;">#                               Ver 1.1 AD2009 02.17</span>
<span style="color: #666666; font-style: italic;">#                               Ver 1.0 AD2008 11.12</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">################################################################</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Edit here</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのアドレス・ホスト名</span>
<span style="color: #007800;">DB_HOST</span>=<span style="color: #ff0000;">&quot;localhost&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのユーザー名</span>
<span style="color: #007800;">DB_USER</span>=<span style="color: #ff0000;">&quot;hogehoge&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBのパスワード</span>
<span style="color: #007800;">DB_PASSWD</span>=<span style="color: #ff0000;">&quot;hugahuga&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DBの名前</span>
<span style="color: #007800;">DB_NAME</span>=<span style="color: #ff0000;">&quot;db_name&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># バックアップ用ディレクトリ</span>
<span style="color: #007800;">BACKUP_DIR</span>=<span style="color: #ff0000;">&quot;/home/hoge/SQL_DUMP&quot;</span>
<span style="color: #007800;">NFS_DAYS_DIR</span>=<span style="color: #ff0000;">&quot;/mnt/file1/DB_BACKUP/web/days&quot;</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Compornent</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #007800;">PATH_DATE</span>=<span style="color: #ff0000;">&quot;/bin/date&quot;</span>
<span style="color: #007800;">DATE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">$PATH_DATE</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">LOWTATE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">$PATH_DATE</span> <span style="color: #660033;">--date</span> <span style="color: #ff0000;">'8 days ago'</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># Main</span>
<span style="color: #666666; font-style: italic;">#------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup MySQL_DUMP to Local</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$BACKUP_DIR</span>
mysqldump <span style="color: #660033;">-h</span> <span style="color: #007800;">$DB_HOST</span> <span style="color: #660033;">-u</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_USER</span>&quot;</span> <span style="color: #660033;">--password</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_PASSWD</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql
<span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup MySQL_DUMP to NFS</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NFS_DAYS_DIR</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Lowate Backup to NFS</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$NFS_DAYS_DIR</span>
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DB_NAME</span>&quot;</span>-<span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOWTATE</span>&quot;</span>.dump.sql.bz2</pre></div></div>

<p>↑のスクリプトは、バックアップを一週間前のものまで保存し、<br />
それより以前のものは破棄するようにしてある。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/03/17/248/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP-Syntaxを入れてみた</title>
		<link>http://blog.maidsan.tk/2009/01/28/58</link>
		<comments>http://blog.maidsan.tk/2009/01/28/58#comments</comments>
		<pubDate>Tue, 27 Jan 2009 15:50:46 +0000</pubDate>
		<dc:creator>type74</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugin]]></category>

		<guid isPermaLink="false">http://blog.maidsan.tk/?p=58</guid>
		<description><![CDATA[Blogにソースコードを貼り付ける時に見栄えがよくなるように、 WP-Syntaxを入れてみた。 テストソースをペタリ(´・ω・）っ■ #!/bin/bash ############################## [...]]]></description>
			<content:encoded><![CDATA[<p>Blogにソースコードを貼り付ける時に見栄えがよくなるように、<br />
<a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a>を入れてみた。</p>
<p>テストソースをペタリ(´・ω・）っ■</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">################################################################</span>
<span style="color: #666666; font-style: italic;">#	Backup Config Tool Ver 1.0</span>
<span style="color: #666666; font-style: italic;">#				Ver 0.1 AD2008 08.20</span>
<span style="color: #666666; font-style: italic;">################################################################</span>
<span style="color: #007800;">DATE</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">date</span>
<span style="color: #007800;">NOW</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">$DATE</span> +<span style="color: #000000; font-weight: bold;">%</span>y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d-<span style="color: #000000; font-weight: bold;">%</span>H<span style="color: #000000; font-weight: bold;">%</span>M<span style="color: #000000; font-weight: bold;">%</span>S<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">OUT</span>=<span style="color: #ff0000;">&quot;$1&quot;</span><span style="color: #ff0000;">&quot;_&quot;</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$NOW</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$OUT</span>&quot;</span></pre></div></div>

<p>対応ソースコードは、以下の通り。<br />
<span id="more-58"></span><br />
abap, actionscript, actionscript3, ada, apache, applescript, apt<em>sources, asm, <strong>asp</strong>, autoit, avisynth, <strong>bash</strong>, bf, blitzbasic, bnf, boo, <strong>c</strong>, c</em>mac, caddcl, cadlisp, cil, cfdg, cfm, cobol, cpp-qt, <strong>cpp</strong>, <strong>csharp</strong>, <strong>css</strong>, d, delphi, diff, div, dos, dot, eiffel, email, fortran, freebasic, genero, gettext, glsl, gml, bnuplot, groovy, haskell, hq9plus, <strong>html4strict</strong>, idl, ini, inno, intercal, io, <strong>java</strong>, <strong>java5</strong>, <strong>javascript</strong>, kixtart, klonec, klonecpp, latex, lisp, lolcode lotusformulas, lotusscript, lscript, lua, m68k, make, matlab, mirc, mpasm, mxml, <strong>mysql</strong>, nsis, <strong>objc</strong>, ocaml-brief, ocaml, oobas, <strong>oracle11</strong>, oracle8, pascal, per, pic16, pixelbender, <strong>perl</strong>, php-brief, <strong>php</strong>, plsql, povray, powershell, progress, prolog, providex, <strong>python</strong>, qbasic, <strong>rails</strong>, reg, robots, <strong>ruby</strong>, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, <strong>sql</strong>, tcl, teraterm, text, thinbasic, tsql, typoscript, <strong>vb</strong>, <strong>vbnet</strong>, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, <strong>xml</strong>, xorg_conf, xpp, z80</p>
<p>そんじょそこらのテキストエディタよりよっぽど対応言語が多い！！<br />
WordPress使ってて、ソースコード貼り付けるならWP-Syntaxおぬぬめ(ﾟ∀ﾟ)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.maidsan.tk/2009/01/28/58/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

