<?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>Welcome to the phpBB Doctor Blog &#187; Backups</title>
	<atom:link href="http://www.phpbbdoctor.com/blog/category/phpbb/backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpbbdoctor.com/blog</link>
	<description>Your premium source for custom modification services for phpBB</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:30:50 +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>Board Backup Strategies Part I: What To Include</title>
		<link>http://www.phpbbdoctor.com/blog/2009/09/04/board-backup-strategies-part-i-what-to-include/</link>
		<comments>http://www.phpbbdoctor.com/blog/2009/09/04/board-backup-strategies-part-i-what-to-include/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 13:07:43 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Board Management]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=276</guid>
		<description><![CDATA[A while ago I posted about a software product that lets you run backups and store them on Amazon.com&#8217;s S3 data center service. It was an interesting idea, but mostly it got me thinking about how to determine an optimal backup strategy for other board owners. I do my backups every night. I guess I [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I posted about a software product that lets you run backups and store them on Amazon.com&#8217;s S3 data center service. It was an interesting idea, but mostly it got me thinking about how to determine an optimal backup strategy for other board owners. I do my backups every night. I guess I should actually say I never do backups; I have a script do them for me instead. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  That&#8217;s one aspect to consider when setting up a backup strategy for your board.</p>
<p>For this post I would like to cover what are probably some fairly obvious concepts for experienced board owners. The first question that needs to be asked is: What do I need to include in my backup strategy?</p>
<p><span id="more-276"></span></p>
<h3>Code and Data</h3>
<p>There are two components of your board: code and data. If you need to move or restore your board you need both parts; one is useless without the other. I will submit that data is more important than code. If you have code with no data, you&#8217;ve lost what makes your board unique. If you have data with no code, you can at least download a free set of code for phpbb and use it. But the question remains&#8230; what should I include in my backups? The answer is, of course, both.</p>
<h3>Backing Up Source Code</h3>
<p>There are some folks that run very sophisticated code management systems. They might include SVN (an open source code management system, link at end of post) or something similar. I don&#8217;t do that. Sometimes I wish I did but I have never needed anything that complex because I am the only developer on the system. I don&#8217;t have to deal with supporting more than one developer. I could use a system like SVN for tracking code changes, but so far I have not needed anything that sophisticated.</p>
<p>But I do back up my code. It&#8217;s not done on a scheduled basis, because code changes only happen when I make them. I started off on a tangent about my development process and decided to move all of that information to a new blog post rather than here, so for now let me just assume that there are code changes that happen. Before I put new code onto my production web server I will make a copy of the existing code and keep it easily available on the server. If some sort of bug managed to slip through my testing, I need to be able to fix it immediately, or if I cannot, I have to copy the old code back so that the board doesn&#8217;t go down. Once the the board has been updated and verified then the copy of the code will be downloaded off of the server and archived on my home network. I include a &#8220;readme&#8221; file that details the changes made and store it with the copy of the code.</p>
<p>I then will also make a copy of the current production code, and that is also downloaded to my home network. In the event of a hardware failure I would restore my code backup to a new server and follow that with my most recent database backup and my site is up and running. Which brings me to the next concept&#8230;</p>
<h3>Backing Up Your Database</h3>
<p>Code is not supposed to change unless you know about it. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Database content can literally change every second. For that reason it is much more important to make regular database backups as compared to your code backup process. How often do you back up your database? There is a simple answer to that&#8230; how much data are you willing to lose?</p>
<p>I used to run my database backup process on Saturdays. That worked fine until I messed up the database on Thursday afternoon. By going to my backup file I lost everything that happened from Sunday through Thursday afternoon, or over 100 hours of board activity. With the level of activity I had at the time, that was about 50 new users. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_eek.gif' alt=':shock:' class='wp-smiley' /> </p>
<p>I now run my backup process every night, so the maximum data loss would be one day rather than 4+ days that I had lost before. Of course my board is a lot more active today than it was years ago. An average twenty four hours of activity on my board today is:</p>
<ul>
<li>31 new users</li>
<li>387 new posts</li>
<li>77 new topics</li>
</ul>
<p>Are daily backups enough, given this information? For now, yes. At some point I may shift to capturing the data every six hours (four times a day) to cut down my potential losses, but for now I am comfortable with these numbers.</p>
<h3>Next Post: Database Backup Scripts</h3>
<p>In the next post I plan to go into more detail about how I manage the automatic database backups. It&#8217;s fairly simple (which is good) and automatic (which is even better).</p>
<p><strong>Related Links</strong></p>
<ul>
<li><a href="http://subversion.tigris.org/">Subversion Code Management</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2009/09/04/board-backup-strategies-part-i-what-to-include/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Backing Up Your Board&#8230;. to Amazon?</title>
		<link>http://www.phpbbdoctor.com/blog/2008/10/08/backing-up-your-board-to-amazon/</link>
		<comments>http://www.phpbbdoctor.com/blog/2008/10/08/backing-up-your-board-to-amazon/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 16:38:12 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Board Management]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://www.phpbbdoctor.com/blog/?p=271</guid>
		<description><![CDATA[One of the most critical steps that many board owners fail to take is designing and implementing an effective backup strategy. In my opinion, backups cannot be a manual process. They have to be automatic. If they&#8217;re not automatic, then they don&#8217;t get done&#8230; and a backup that isn&#8217;t done is worse than no backup [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most critical steps that many board owners fail to take is designing and implementing an effective backup strategy. In my opinion, backups cannot be a manual process. They have to be automatic. If they&#8217;re not automatic, then they don&#8217;t get done&#8230; and a backup that isn&#8217;t done is worse than no backup at all. At least if you know you&#8217;re not doing backups you don&#8217;t have anything to complain about. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I lease a dedicated server from a hosting company so I have root access. I do several layers of backups, including an automatic download to a secondary server located in my home office&#8230; and storage on a RAID (mirror) device. This all runs during the wee hours of the morning. But what if you don&#8217;t have the same choices as me&#8230; does that mean you can&#8217;t have the same advantages?</p>
<p><span id="more-271"></span><br />
The other day I noticed an ad being displayed on the bottom of one of my boards via the Google Adsense program. I can&#8217;t click on the ad (it&#8217;s a violation of Google&#8217;s Terms of Service to do so) but they provide a tool that lets me determine what the target URL is. It was for a service called Zmanda Open Source Backup. The &#8220;open source&#8221; part caught my eye, so I went to their site. In a nutshell, they provide a backup program. That, in and of itself, probably isn&#8217;t that interesting. But what is interesting is that one of their target devices can be Amazon.com&#8217;s S3 service. Amazon.com offers a data center service where you pay for the space that you use. It&#8217;s fully redundant / fault tolerant  and comes with a 99.9% uptime guarantee. I would rather see five 9&#8217;s instead of three, but that&#8217;s not bad. </p>
<p><em>As a brief aside, for those who are not familiar with the term &#8220;five 9&#8217;s&#8221; as I have used it here. The phrase &#8220;five 9&#8217;s&#8221; refers to 99.999% uptime. To put that into perspective, three 9&#8217;s implies up to nearly 9 hours of downtime in the course of a year. Five 9&#8217;s implies only about six minutes of downtime during an entire year. Big difference? Only if you need your data at some point during those nine hours. <img src='http://www.phpbbdoctor.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em></p>
<p>When I <a href="http://www.zmanda.com/backup-Amazon-S3.html">reviewed their service description</a> I saw that instead of selecting a tape or disk device as the destination for my backup, I would be able to select the Amazon S3 data center. My own backup process includes keeping a rolling archive of files for each database on my server, including clients that I host. The most recent backup file is kept on the server itself, on a secondary hard disk. I keep generations of backup files on my home network going back quite a while.</p>
<p>With Zmanda&#8217;s backup system it seems that I could do the same thing with the advantage that I could run a restore from anywhere with Internet access. Today if I need to restore I have to be at home.</p>
<p>There is a cost, of course. The S3 service from Amazon has a charge associated with it. But I paid over $1,000 for the RAID device that I currently use for my backup destination. I also have to maintain a linux box that runs the cron jobs required to download the files after they appear on my production server. I haven&#8217;t investigated the cost of the S3 service but I bet it would be cheaper than that.</p>
<p>For now I&#8217;ve already made the investment, so I will continue to use my existing process.</p>
<p><strong>Coming Attractions</strong><br />
I have a few other posts related to making board backups coming out over the next few months (as I get time to complete them). I wanted to start with this one because I thought it was an interesting service. In my next post I plan to detail why backups are important, and how to go about determining a backup strategy that works for your board.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpbbdoctor.com/blog/2008/10/08/backing-up-your-board-to-amazon/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

