<?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"
	>
<channel>
	<title>Comments on: Upgrade your WordPress sites in 5 Seconds</title>
	<atom:link href="http://www.thecodecave.com/article315/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thecodecave.com/article315</link>
	<description>Cold storage before my best ideas melt away...</description>
	<pubDate>Thu, 20 Nov 2008 15:49:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: toplist</title>
		<link>http://www.thecodecave.com/article315#comment-16160</link>
		<dc:creator>toplist</dc:creator>
		<pubDate>Fri, 30 Mar 2007 21:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-16160</guid>
		<description>tahnk you</description>
		<content:encoded><![CDATA[<p>tahnk you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7874</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 09 Jan 2007 19:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7874</guid>
		<description>Please see &lt;a href="http://www.thecodecave.com/article321 " rel="nofollow"&gt;http://www.thecodecave.com/article321 &lt;/a&gt; for a status update and request for help.</description>
		<content:encoded><![CDATA[<p>Please see <a href="http://www.thecodecave.com/article321 " rel="nofollow"></a><a href="http://www.thecodecave.com/article321" rel="nofollow">http://www.thecodecave.com/article321</a>  for a status update and request for help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.thecodecave.com/article315#comment-7783</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sun, 07 Jan 2007 18:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7783</guid>
		<description>I must say thank you! Updating 17 WordPress sites is tedious--although not that many compared to some people--but this made it a breeze.</description>
		<content:encoded><![CDATA[<p>I must say thank you! Updating 17 WordPress sites is tedious&#8211;although not that many compared to some people&#8211;but this made it a breeze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.thecodecave.com/article315#comment-7747</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 06 Jan 2007 20:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7747</guid>
		<description>Now put a check IF there is a new download version at the beginning, and one could run the whole script on a daily basis via cron.</description>
		<content:encoded><![CDATA[<p>Now put a check IF there is a new download version at the beginning, and one could run the whole script on a daily basis via cron.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Standing Tall &#187;WordPress</title>
		<link>http://www.thecodecave.com/article315#comment-7734</link>
		<dc:creator>Standing Tall &#187;WordPress</dc:creator>
		<pubDate>Sat, 06 Jan 2007 14:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7734</guid>
		<description>[...] Thank you, Brian! It worked fine and I said “Wow!”.[...]</description>
		<content:encoded><![CDATA[<p>[...] Thank you, Brian! It worked fine and I said “Wow!”.[...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7677</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 06 Jan 2007 02:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7677</guid>
		<description>Maybe,  log: I created a script it can be found at blog.fileville.net/upload/wpbackup.phps.
It works but I'm sure you could come up with something much better. But I thought I'd try any way since you've helped me get your script working. 
Any way, I think I have solved the problem... No, it was not a extra slash this time, the script put my backup in the wrong spot the root directory, but the problem was my FTP client. It is working... Finally!  Sorry for all the trouble.</description>
		<content:encoded><![CDATA[<p>Maybe,  log: I created a script it can be found at blog.fileville.net/upload/wpbackup.phps.<br />
It works but I&#8217;m sure you could come up with something much better. But I thought I&#8217;d try any way since you&#8217;ve helped me get your script working.<br />
Any way, I think I have solved the problem&#8230; No, it was not a extra slash this time, the script put my backup in the wrong spot the root directory, but the problem was my FTP client. It is working&#8230; Finally!  Sorry for all the trouble.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7669</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 06 Jan 2007 01:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7669</guid>
		<description>Not sure how to do the log... I've been setting my putty buffer to 9999 lines. :)

Your lines work fine for me.

Try this...  Around line 240 change this section 
[code]
    cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-includes $BackupDir/wp-includes
    let "index = $index + 1"
  done
fi 

# ##################################################################
#  Perform the full table backups before touching any files.
# ##################################################################
[/code]

by adding an exit before the done like this:
[code]
    cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-includes $BackupDir/wp-includes
    let "index = $index + 1"
    exit
  done
fi 

# ##################################################################
#  Perform the full table backups before touching any files.
# ##################################################################
[/code]

You can more quickly see any error messages that way.  I think perhaps you have some permissions issues.  I thought I might run into that, but I didn't want to arbitrarily change everyone's permissions.</description>
		<content:encoded><![CDATA[<p>Not sure how to do the log... I've been setting my putty buffer to 9999 lines. <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Your lines work fine for me.</p>
<p>Try this...  Around line 240 change this section </p>
<div class="igBar"><span id="lcode-1"><a href="#" onclick="javascript:showPlainTxt('code-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-1">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-includes $BackupDir/wp-includes</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; let <span style="color:#CC0000;">"index = $index + 1"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; done</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fi </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># ##################################################################</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#&nbsp; Perform the full table backups before touching any files.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># ################################################################## </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>by adding an exit before the done like this:</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-includes $BackupDir/wp-includes</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; let <span style="color:#CC0000;">"index = $index + 1"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; exit</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; done</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fi </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># ##################################################################</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#&nbsp; Perform the full table backups before touching any files.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># ################################################################## </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You can more quickly see any error messages that way.  I think perhaps you have some permissions issues.  I thought I might run into that, but I didn't want to arbitrarily change everyone's permissions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7668</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 06 Jan 2007 01:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7668</guid>
		<description>Here's mine:
CommonRootPrefix="/kunden/homepages/00/d00000000/htdocs/"
CommonBackupPrefix=$CommonRootPrefix"wpbackup"
# CommonSQLBackupPrefix="/This/is/the/path/to/your/htdocs/WPSQLBackUps" # Disabled in this version

Oh and I had another idea, all that information when the script is working goes by so fast, why not create a log within the directory that the backup is in. :-) Thanks...</description>
		<content:encoded><![CDATA[<p>Here's mine:<br />
CommonRootPrefix="/kunden/homepages/00/d00000000/htdocs/"<br />
CommonBackupPrefix=$CommonRootPrefix"wpbackup"<br />
# CommonSQLBackupPrefix="/This/is/the/path/to/your/htdocs/WPSQLBackUps" # Disabled in this version</p>
<p>Oh and I had another idea, all that information when the script is working goes by so fast, why not create a log within the directory that the backup is in. <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Thanks...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7667</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 06 Jan 2007 01:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7667</guid>
		<description>Hmmm, I just ran mine again with the backup turned on and all worked smoothly.  So it is creating new directories.  

My variables look something like this:
CommonRootPrefix="/kunden/homepages/00/d55555555/htdocs/"
CommonBackupPrefix="/kunden/homepages/00/d55555555/htdocs/WPBackUps"
CommonSQLBackupPrefix="/kunden/homepages/00/d55555555/htdocs/WPSQLBackUps"

What do yours look like?</description>
		<content:encoded><![CDATA[<p>Hmmm, I just ran mine again with the backup turned on and all worked smoothly.  So it is creating new directories.  </p>
<p>My variables look something like this:<br />
CommonRootPrefix="/kunden/homepages/00/d55555555/htdocs/"<br />
CommonBackupPrefix="/kunden/homepages/00/d55555555/htdocs/WPBackUps"<br />
CommonSQLBackupPrefix="/kunden/homepages/00/d55555555/htdocs/WPSQLBackUps"</p>
<p>What do yours look like?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7665</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 06 Jan 2007 00:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7665</guid>
		<description>I spoke to soon, because each time the script runs no backup is created. The backup direcotry is empty. Infact I think the script can't find the directory. But when I look at the directory using Dir it finds the directory without a problem. Any idea? :-)

I have 1and1 shared hosting and I tried that command and this is what I got:
USER:~ &#62; usermod -c MY_SITE REST_OF_COMMAND
bash: ./usermod: Permission denied</description>
		<content:encoded><![CDATA[<p>I spoke to soon, because each time the script runs no backup is created. The backup direcotry is empty. Infact I think the script can't find the directory. But when I look at the directory using Dir it finds the directory without a problem. Any idea? <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
I have 1and1 shared hosting and I tried that command and this is what I got:<br />
USER:~ &gt; usermod -c MY_SITE REST_OF_COMMAND<br />
bash: ./usermod: Permission denied</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7660</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 05 Jan 2007 23:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7660</guid>
		<description>Joe:  LOL Well it was supposed to save time!  Just think of all the time you'll save on 2.0.7 and 2.0.8 ;)

I'll make the trailing slash status clearer in the next release!

Aaron:Thank you for the suggestion!  It's taking a bit longer for me to digest and I wanted to clear up Joe's concern right away.  I do have two minor issues with the optimization you suggest.  First, people will need to edit stuff in two places.  That's gonna be harder for them to do.  Second, I think that this is not gonna work for shared servers.  That stuff is usually restricted isn't it?  Please correct me if I'm wrong and I'll investigate your method further...  If it speeds it up significantly and will still work for everyone, it might be worth it.</description>
		<content:encoded><![CDATA[<p>Joe:  LOL Well it was supposed to save time!  Just think of all the time you'll save on 2.0.7 and 2.0.8 <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I'll make the trailing slash status clearer in the next release!</p>
<p>Aaron:Thank you for the suggestion!  It's taking a bit longer for me to digest and I wanted to clear up Joe's concern right away.  I do have two minor issues with the optimization you suggest.  First, people will need to edit stuff in two places.  That's gonna be harder for them to do.  Second, I think that this is not gonna work for shared servers.  That stuff is usually restricted isn't it?  Please correct me if I'm wrong and I'll investigate your method further...  If it speeds it up significantly and will still work for everyone, it might be worth it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7658</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 05 Jan 2007 23:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7658</guid>
		<description>Cool... I finnally got the file working 45 minutes later, it was updating my main blog and my second blog. :-) The Problem: an extra slash. :-) Thanks for the good script.</description>
		<content:encoded><![CDATA[<p>Cool... I finnally got the file working 45 minutes later, it was updating my main blog and my second blog. <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> The Problem: an extra slash. <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Thanks for the good script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7656</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 05 Jan 2007 23:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7656</guid>
		<description>Ah! I see why you asked.  Good Question!

The --remove-destination works on a file by file basis with the copy command and not at the directory level.  

The Man documentation says
      --remove-destination     remove each existing destination file before
                                 attempting to open it (contrast with --force)

I could use force which says 
  -f, --force                  if an existing destination file cannot be
                                   opened, remove it and try again

But it just seemed cleaner to remove the destination.

So, the only files that will be written to (or deleted) by this script are the ones that are downloaded from wp.org.  This does leave some room for clutter. If a file is removed from WP, this script will not remove it from your site.  Automation is a cookie cutter business, and deciding which files were deleted from the WP release is a bit beyond its safe capablities.

Yes, the Zip will be there soon as will the SQL backups and a couple more things too I hope.</description>
		<content:encoded><![CDATA[<p>Ah! I see why you asked.  Good Question!</p>
<p>The --remove-destination works on a file by file basis with the copy command and not at the directory level.  </p>
<p>The Man documentation says<br />
      --remove-destination     remove each existing destination file before<br />
                                 attempting to open it (contrast with --force)</p>
<p>I could use force which says<br />
  -f, --force                  if an existing destination file cannot be<br />
                                   opened, remove it and try again</p>
<p>But it just seemed cleaner to remove the destination.</p>
<p>So, the only files that will be written to (or deleted) by this script are the ones that are downloaded from wp.org.  This does leave some room for clutter. If a file is removed from WP, this script will not remove it from your site.  Automation is a cookie cutter business, and deciding which files were deleted from the WP release is a bit beyond its safe capablities.</p>
<p>Yes, the Zip will be there soon as will the SQL backups and a couple more things too I hope.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7644</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 05 Jan 2007 22:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7644</guid>
		<description>I was asking because I know that it is quite important. :-) 
This: 
cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-content $BackupDir/wp-content
Does this script delete only the wp-files that need to be deleted? 
About the zip, so that will be eventually in there? And what about the MySQL backup add-in? Thanks... :-)</description>
		<content:encoded><![CDATA[<p>I was asking because I know that it is quite important. <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
This:<br />
cp -R -v --remove-destination $CommonRootPrefix$CurDir/wp-content $BackupDir/wp-content<br />
Does this script delete only the wp-files that need to be deleted?<br />
About the zip, so that will be eventually in there? And what about the MySQL backup add-in? Thanks... <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.thecodecave.com/article315#comment-7638</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 05 Jan 2007 21:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7638</guid>
		<description>RE: Joe
&gt; Do I have to delete my WP-content folder?
No, but I would like to know why you are asking this.    WP-content  is the directory that contains pretty much everything that makes your site yours.  From your themes to your plugins, all of that stuff is in WP-Content.  So, deleting that would reset you to a standard site (if WP recovers nicely from it).  Did you see something that made you think you should?

This cannot create a zip backup at this time.  It is a good idea and it floated through my mind at one point.  Aparently, it floated back out again when I actually got down to writing the thing...

I will put that in a later version.  Thanks for the suggestion!</description>
		<content:encoded><![CDATA[<p>RE: Joe<br />
> Do I have to delete my WP-content folder?<br />
No, but I would like to know why you are asking this.    WP-content  is the directory that contains pretty much everything that makes your site yours.  From your themes to your plugins, all of that stuff is in WP-Content.  So, deleting that would reset you to a standard site (if WP recovers nicely from it).  Did you see something that made you think you should?</p>
<p>This cannot create a zip backup at this time.  It is a good idea and it floated through my mind at one point.  Aparently, it floated back out again when I actually got down to writing the thing...</p>
<p>I will put that in a later version.  Thanks for the suggestion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.thecodecave.com/article315#comment-7636</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 05 Jan 2007 21:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7636</guid>
		<description>I was building a PHP script that does the same thing. But it looks like this does what I need. Do I have to delete my WP-content folder? I never have. And can this create a back up zip? When all the files are put into the today’s date directory, including the DB backup then it just zips it up and instead of a folder a just zip file.  Thanks...</description>
		<content:encoded><![CDATA[<p>I was building a PHP script that does the same thing. But it looks like this does what I need. Do I have to delete my WP-content folder? I never have. And can this create a back up zip? When all the files are put into the today’s date directory, including the DB backup then it just zips it up and instead of a folder a just zip file.  Thanks...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Brazell</title>
		<link>http://www.thecodecave.com/article315#comment-7629</link>
		<dc:creator>Aaron Brazell</dc:creator>
		<pubDate>Fri, 05 Jan 2007 20:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7629</guid>
		<description>Nice script. I've done something similar at b5media.

Here's a suggestion, especially for people who have TONS of sites. (I upgraded over 200 this afternoon). Make sure that the comments section of each user in /etc/passwd has the domain name.

&lt;code&gt;usermod -c technosailor.com technosailor&lt;/code&gt;

Then, instead of having tons of arrays, you can just have a single one with all the domain names. I took this one step farther and queried MySQL first for all the domains from a single source, but barring that, add all the domains by hand to an array. They should be of the form example.com if that is the form used in /etc/passwd.

Now, loop through /etc/passwd with bash and use the &lt;code&gt;cut&lt;/code&gt; command to break each line into bits using : as the separator. I use PHP as explode() works well and is simpler for me. Now you can choose the comment field and match it to the domain in the array and, using the homedir field in /etc/passwd, can easily deduce where to put your new WordPress upgrades.

Works for me but it does take a little massaging. Might be better when dealing with MANY domains. Like I said, I also prefer to use PHP CLI to handle alot of my scripting.</description>
		<content:encoded><![CDATA[<p>Nice script. I've done something similar at b5media.</p>
<p>Here's a suggestion, especially for people who have TONS of sites. (I upgraded over 200 this afternoon). Make sure that the comments section of each user in /etc/passwd has the domain name.</p>
<p><code>usermod -c technosailor.com technosailor</code></p>
<p>Then, instead of having tons of arrays, you can just have a single one with all the domain names. I took this one step farther and queried MySQL first for all the domains from a single source, but barring that, add all the domains by hand to an array. They should be of the form example.com if that is the form used in /etc/passwd.</p>
<p>Now, loop through /etc/passwd with bash and use the <code>cut</code> command to break each line into bits using : as the separator. I use PHP as explode() works well and is simpler for me. Now you can choose the comment field and match it to the domain in the array and, using the homedir field in /etc/passwd, can easily deduce where to put your new WordPress upgrades.</p>
<p>Works for me but it does take a little massaging. Might be better when dealing with MANY domains. Like I said, I also prefer to use PHP CLI to handle alot of my scripting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les</title>
		<link>http://www.thecodecave.com/article315#comment-7628</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Fri, 05 Jan 2007 19:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodecave.com/article315#comment-7628</guid>
		<description>Edited file (which took a bit more than 5 seconds, must improve my typing). I also took the paranoid option of a manual backup, which I downloaded. Once I'd done that and uploaded the script, it worked immediately, no errors generated, and the site is now running 2.0.6. Nice work :)</description>
		<content:encoded><![CDATA[<p>Edited file (which took a bit more than 5 seconds, must improve my typing). I also took the paranoid option of a manual backup, which I downloaded. Once I'd done that and uploaded the script, it worked immediately, no errors generated, and the site is now running 2.0.6. Nice work <img src='http://www.thecodecave.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.616 seconds -->
