<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Untangling WordPress&#8217; core files from your local customizations</title>
	<atom:link href="http://blog.bigsmoke.us/2009/01/30/separating-wordpress-factory-files-from-custom-files/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us/2009/01/30/separating-wordpress-factory-files-from-custom-files</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 20:03:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rowan Rodrik</title>
		<link>http://blog.bigsmoke.us/2009/01/30/separating-wordpress-factory-files-from-custom-files#comment-102338</link>
		<dc:creator>Rowan Rodrik</dc:creator>
		<pubDate>Wed, 08 Dec 2010 20:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=113#comment-102338</guid>
		<description>Another approach is to use &lt;a href=&quot;http://funionfs.apiou.org/&quot; rel=&quot;nofollow&quot;&gt;funionfs&lt;/a&gt;, a union filesystem for FUSE. I got this &lt;a href=&quot;http://madbean.com/2007/hates-step-one/&quot; rel=&quot;nofollow&quot;&gt;idea&lt;/a&gt; from madbean.com.</description>
		<content:encoded><![CDATA[<p>Another approach is to use <a href="http://funionfs.apiou.org/" rel="nofollow">funionfs</a>, a union filesystem for FUSE. I got this <a href="http://madbean.com/2007/hates-step-one/" rel="nofollow">idea</a> from madbean.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rowan Rodrik</title>
		<link>http://blog.bigsmoke.us/2009/01/30/separating-wordpress-factory-files-from-custom-files#comment-98910</link>
		<dc:creator>Rowan Rodrik</dc:creator>
		<pubDate>Sun, 26 Sep 2010 20:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=113#comment-98910</guid>
		<description>Halfgaar,

I now use the version name in the name of the external with a symbolic link called “wp” to the current version in use.

&lt;code lang=&quot;bash&quot;&gt;svn propget svn:externals .&lt;/code&gt;
&lt;pre&gt;
wp-3.0 http://core.svn.wordpress.org/tags/3.0/
wp-3.0.1 http://core.svn.wordpress.org/tags/3.0.1/
&lt;/pre&gt;

Below I have the rsync stuff that I think you should use. Review it first; I didn&#039;t test; it&#039;s a combination of the Makefile and the Rakefile of two different WP installs (Aihato&#039;s and this one).

&lt;code lang=&quot;bash&quot;&gt;
rsync --verbose --progress --recursive --delete --links --times \
      --filter=&#039;merge ./rsync-upload-filters&#039; \
      --filter=&#039;exclude /wp&#039; \
      ${HOME}/www.example.com/ \
      halfgaar_example@ssh.phx.nearlyfreespeech.net:/home/htdocs/

# The same, but now the link is also synced
rsync --verbose --progress --recursive --delete --links --times \
      --filter=&#039;merge ./rsync-upload-filters&#039; \
      ${HOME}/www.example.com/ \
      halfgaar_example@ssh.phx.nearlyfreespeech.net:/home/htdocs/
&lt;/code&gt;

Dit is mijn &lt;tt&gt;rsync-upload-filters&lt;/tt&gt;:
&lt;pre&gt;
exclude rsync-upload-filters
exclude .svn/
exclude /Makefile
exclude /dump.sql
protect /uploads/
&lt;/pre&gt;

Als je de uploads gaat terugsyncen binnen je working copy of ze zelfs in de repo in wilt checken, moet je misschien ook nog “&lt;tt&gt;&lt;b&gt;exclude&lt;/b&gt; /uploads/&lt;/tt&gt;” toevoegen.

Ok, that was weird. I only just noticed that I reversed back to Dutch.

You&#039;ll know how to do backups of the uploads. I just use the same rsync options with source and destination reversed. Database backups I do like this:
&lt;code lang=&quot;bash&quot;&gt;
SSH_CREDS=&quot;halfgaar_example@ssh.phx.nearlyfreespeech.net&quot;
MYSQLDUMP=&quot;mysqldump --port=3306 --host=halfgaar.db --user=dbuser --password=oimsovulnerable --routines --opt&quot;
REMOTE_DIR=&quot;/home/private/mysql.bak&quot;
LOCAL_DIR=&quot;/bla&quot;

ssh $SSH_CREDS &quot;$MYSQLDUMP exampledb &gt; $REMOTE_DIR/exampledb.mysql&quot;
scp $SSH_CREDS:$REMOTE_DIR/exampledb.mysql $LOCAL_DIR
&lt;/code&gt;

Hier is ook nog hoe ik de development db reload:
&lt;code lang=&quot;bash&quot;&gt;
mysql --user=root --password=osoinsecure -e &#039;DROP DATABASE example&#039;
mysql --user=root --password=osoinsecure -e &#039;CREATE DATABASE example&#039;
mysql --user=root --password=osoinsecure example &lt; example.mysql
&lt;/code&gt;

Het is een beetje een hodgepodge van losse info, want voor ieder project regel ik alles anders en dat dan vaak binnen de working copy en dan heb ik op Butler ook nog een losse backup script om al mijn NFSN databases te backuppen. Ik zou er nog een heel verhaal over kunnen houden wat voor een puinzooi ik hier heb, maar ik houd het er maar bij om te zeggen dat als je nog iets nodig hebt of iets onduidelijk is, je het maar even moet laten weten.

Ik zet trouwens de &lt;tt&gt;uploads&lt;/tt&gt; directory altijd direct binnen de &lt;tt&gt;htdocs&lt;/tt&gt;, dus niet binnen &lt;tt&gt;wp-content&lt;/tt&gt; zoals WP zelf graag doet.

Verder kun je de door WP gegenereerde &lt;tt&gt;.htaccess&lt;/tt&gt; veilig negeren. Hier is de &lt;tt&gt;.htaccess&lt;/tt&gt; van de Aihato site:

&lt;code lang=&quot;apacheconf&quot;&gt;
php_value short_open_tag off


&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On

RewriteRule ^$ /wp/index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]

&lt;/IfModule&gt;
&lt;/code&gt;

Dit is simpeler dan hoe ik het voor deze blog heb gedaan, waar ik extra voodoo nodig had omdat WP zijn eigen shit niet wilde verwijderen.

PS: Van Sjura moet ik zeggen dat ik deze comment grotendeels op de pot heb geproduceerd. ;-)</description>
		<content:encoded><![CDATA[<p>Halfgaar,</p>
<p>I now use the version name in the name of the external with a symbolic link called “wp” to the current version in use.</p>
<p><pre class="bash">svn propget svn:externals .</pre></p>
<pre>
wp-3.0 <a href="http://core.svn.wordpress.org/tags/3.0/" rel="nofollow">http://core.svn.wordpress.org/tags/3.0/</a>
wp-3.0.1 <a href="http://core.svn.wordpress.org/tags/3.0.1/" rel="nofollow">http://core.svn.wordpress.org/tags/3.0.1/</a>
</pre>
<p>Below I have the rsync stuff that I think you should use. Review it first; I didn&#8217;t test; it&#8217;s a combination of the Makefile and the Rakefile of two different WP installs (Aihato&#8217;s and this one).</p>
<p><pre class="bash">rsync --verbose --progress --recursive --delete --links --<span style="color: #000066;">times</span> \
      --<span style="color: #0000ff;">filter=</span><span style="color: #ff0000;">'merge ./rsync-upload-filters'</span> \
      --<span style="color: #0000ff;">filter=</span><span style="color: #ff0000;">'exclude /wp'</span> \
      <span style="color: #0000ff;">$<span style="color: #66cc66;">&#123;</span>HOME<span style="color: #66cc66;">&#125;</span></span>/www.example.com/ \
      halfgaar_example@ssh.phx.nearlyfreespeech.net:/home/htdocs/
&nbsp;
<span style="color: #808080; font-style: italic;"># The same, but now the link is also synced</span>
rsync --verbose --progress --recursive --delete --links --<span style="color: #000066;">times</span> \
      --<span style="color: #0000ff;">filter=</span><span style="color: #ff0000;">'merge ./rsync-upload-filters'</span> \
      <span style="color: #0000ff;">$<span style="color: #66cc66;">&#123;</span>HOME<span style="color: #66cc66;">&#125;</span></span>/www.example.com/ \
      halfgaar_example@ssh.phx.nearlyfreespeech.net:/home/htdocs/</pre></p>
<p>Dit is mijn <tt>rsync-upload-filters</tt>:</p>
<pre>
exclude rsync-upload-filters
exclude .svn/
exclude /Makefile
exclude /dump.sql
protect /uploads/
</pre>
<p>Als je de uploads gaat terugsyncen binnen je working copy of ze zelfs in de repo in wilt checken, moet je misschien ook nog “<tt><b>exclude</b> /uploads/</tt>” toevoegen.</p>
<p>Ok, that was weird. I only just noticed that I reversed back to Dutch.</p>
<p>You&#8217;ll know how to do backups of the uploads. I just use the same rsync options with source and destination reversed. Database backups I do like this:<br />
<pre class="bash"><span style="color: #0000ff;">SSH_CREDS=</span><span style="color: #ff0000;">&quot;halfgaar_example@ssh.phx.nearlyfreespeech.net&quot;</span>
<span style="color: #0000ff;">MYSQLDUMP=</span><span style="color: #ff0000;">&quot;mysqldump --port=3306 --host=halfgaar.db --user=dbuser --password=oimsovulnerable --routines --opt&quot;</span>
<span style="color: #0000ff;">REMOTE_DIR=</span><span style="color: #ff0000;">&quot;/home/private/mysql.bak&quot;</span>
<span style="color: #0000ff;">LOCAL_DIR=</span><span style="color: #ff0000;">&quot;/bla&quot;</span>
&nbsp;
ssh <span style="color: #0000ff;">$SSH_CREDS</span> <span style="color: #ff0000;">&quot;$MYSQLDUMP exampledb &gt; $REMOTE_DIR/exampledb.mysql&quot;</span>
scp <span style="color: #0000ff;">$SSH_CREDS</span>:<span style="color: #0000ff;">$REMOTE_DIR</span>/exampledb.mysql <span style="color: #0000ff;">$LOCAL_DIR</span></pre></p>
<p>Hier is ook nog hoe ik de development db reload:<br />
<pre class="bash">mysql --<span style="color: #0000ff;">user=</span>root --<span style="color: #0000ff;">password=</span>osoinsecure -e <span style="color: #ff0000;">'DROP DATABASE example'</span>
mysql --<span style="color: #0000ff;">user=</span>root --<span style="color: #0000ff;">password=</span>osoinsecure -e <span style="color: #ff0000;">'CREATE DATABASE example'</span>
mysql --<span style="color: #0000ff;">user=</span>root --<span style="color: #0000ff;">password=</span>osoinsecure example &lt; example.mysql</pre></p>
<p>Het is een beetje een hodgepodge van losse info, want voor ieder project regel ik alles anders en dat dan vaak binnen de working copy en dan heb ik op Butler ook nog een losse backup script om al mijn NFSN databases te backuppen. Ik zou er nog een heel verhaal over kunnen houden wat voor een puinzooi ik hier heb, maar ik houd het er maar bij om te zeggen dat als je nog iets nodig hebt of iets onduidelijk is, je het maar even moet laten weten.</p>
<p>Ik zet trouwens de <tt>uploads</tt> directory altijd direct binnen de <tt>htdocs</tt>, dus niet binnen <tt>wp-content</tt> zoals WP zelf graag doet.</p>
<p>Verder kun je de door WP gegenereerde <tt>.htaccess</tt> veilig negeren. Hier is de <tt>.htaccess</tt> van de Aihato site:</p>
<p><pre class="php">php_value short_open_tag off
&nbsp;
&nbsp;
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
&nbsp;
RewriteRule ^$ /wp/index.php
&nbsp;
RewriteCond %<span style="color: #66cc66;">&#123;</span>REQUEST_FILENAME<span style="color: #66cc66;">&#125;</span> !-f
RewriteCond %<span style="color: #66cc66;">&#123;</span>REQUEST_FILENAME<span style="color: #66cc66;">&#125;</span> !-d
RewriteRule . /wp/index.php <span style="color: #66cc66;">&#91;</span>L<span style="color: #66cc66;">&#93;</span>
&nbsp;
&lt;/IfModule&gt;</pre></p>
<p>Dit is simpeler dan hoe ik het voor deze blog heb gedaan, waar ik extra voodoo nodig had omdat WP zijn eigen shit niet wilde verwijderen.</p>
<p>PS: Van Sjura moet ik zeggen dat ik deze comment grotendeels op de pot heb geproduceerd. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rowan Rodrik</title>
		<link>http://blog.bigsmoke.us/2009/01/30/separating-wordpress-factory-files-from-custom-files#comment-94459</link>
		<dc:creator>Rowan Rodrik</dc:creator>
		<pubDate>Tue, 04 May 2010 14:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=113#comment-94459</guid>
		<description>While installing a development environment for WordPress at YTEC, I noticed that there are some oddities when trying to use this method when the whole website has to site in a &quot;subdirectory&quot; (in this case &lt;tt&gt;http://localhost/~rowan/&lt;/tt&gt;). I could get mostly everything working, except that after setting up pretty permalinks, some things would result in me getting a 404 produced by WordPress.

&lt;tt&gt;/~rowan/2010/05/04/post-slug&lt;/tt&gt; would go wrong, but when I added a prefix such as “blog” or “nieuws”, the post&#039;s permalink &lt;em&gt;would&lt;/em&gt; work. Pages would be successfully resolved (for example, &lt;tt&gt;/~rowan/trainers&lt;/tt&gt; worked) but subpages (such as &lt;tt&gt;/~rowan/trainers/aissa&lt;/tt&gt; wouldn&#039;t).

Anyway, I now have a decent development environment with its very own vhost just like I&#039;m used to, so WordPress is happy again. ;-) I don&#039;t think I even care enough about this bug to report it.</description>
		<content:encoded><![CDATA[<p>While installing a development environment for WordPress at YTEC, I noticed that there are some oddities when trying to use this method when the whole website has to site in a &#8220;subdirectory&#8221; (in this case <tt><a href="http://localhost/~rowan/" rel="nofollow">http://localhost/~rowan/</a></tt>). I could get mostly everything working, except that after setting up pretty permalinks, some things would result in me getting a 404 produced by WordPress.</p>
<p><tt>/~rowan/2010/05/04/post-slug</tt> would go wrong, but when I added a prefix such as “blog” or “nieuws”, the post&#8217;s permalink <em>would</em> work. Pages would be successfully resolved (for example, <tt>/~rowan/trainers</tt> worked) but subpages (such as <tt>/~rowan/trainers/aissa</tt> wouldn&#8217;t).</p>
<p>Anyway, I now have a decent development environment with its very own vhost just like I&#8217;m used to, so WordPress is happy again. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I don&#8217;t think I even care enough about this bug to report it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

