<?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>郁也风的Blog &#187; backup</title>
	<atom:link href="http://www.someok.com/tag/backup/feed" rel="self" type="application/rss+xml" />
	<link>http://www.someok.com</link>
	<description>个人无主题灌水菜园子，对形而下的兴致远大于形而上</description>
	<lastBuildDate>Tue, 11 May 2010 12:40:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>想找个方便的备份策略</title>
		<link>http://www.someok.com/2009/02/backup-method-mindmap.html</link>
		<comments>http://www.someok.com/2009/02/backup-method-mindmap.html#comments</comments>
		<pubDate>Mon, 02 Feb 2009 16:09:03 +0000</pubDate>
		<dc:creator>郁也风</dc:creator>
				<category><![CDATA[软硬兼施]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.someok.com/?p=596</guid>
		<description><![CDATA[今天看了精品论坛的一个帖子《大家来聊聊你的备份方案》，发现原来大家都在为这个头痛。老郁自己也一直想找个比较理想的数据备份、同步方法，可惜思来想去还是花大成本搞个家用NAS最理想，T级硬盘最少2块，类似RAID的功能也得有才能保证数据安全，成本太高啊（基本得4k以上）。 反正今天第一天上班，上午没什么事处理，就搞了张图： 要是有啥想法就直接告诉我吧 Related Posts: 虚拟主机数据备份一法 备份才是王道 © 郁也风 for 郁也风的Blog, 2009. &#124; Permalink &#124; 6 comments Post tags: backup, Categories: 软硬兼施]]></description>
			<content:encoded><![CDATA[<p>今天看了精品论坛的一个帖子《<a href="http://bbs.et8.net/bbs/showthread.php?t=960010">大家来聊聊你的备份方案</a>》，发现原来大家都在为这个头痛。老郁自己也一直想找个比较理想的数据备份、同步方法，可惜思来想去还是花大成本搞个家用NAS最理想，T级硬盘最少2块，类似RAID的功能也得有才能保证数据安全，成本太高啊（基本得4k以上）。</p>
<p>反正今天第一天上班，上午没什么事处理，就搞了张图：</p>
<p><img class="alignnone" title="备份策略思维脑图" src="http://farm4.static.flickr.com/3372/3247447142_d2b528ef53_o.png" alt="" width="461" height="714" /></p>
<img src="http://static.someok.com/images/icon/someok.png" />
<a href="http://www.someok.com/2009/02/backup-method-mindmap.html#respond">
要是有啥想法就直接告诉我吧
</a>

<?php
	if ( function_exists('st_related_posts')):
?>
<div class="related-posts">
<span>Related Posts:</span>
	
<!-- Generated by Simple Tags 1.8 - http://wordpress.org/extend/plugins/simple-tags -->
	<ul class="st-related-posts">
	<li><a href="http://www.someok.com/2007/09/web-host-backup.html" title="虚拟主机数据备份一法 at 2007-09-29 ( 2 )">虚拟主机数据备份一法</a></li>
	<li><a href="http://www.someok.com/2008/06/backup-wp.html" title="备份才是王道 at 2008-06-16 ( 10 )">备份才是王道</a></li>
</ul>


</div>
<?php endif ?>

<hr />
<p><small>© 郁也风 for <a href="http://www.someok.com">郁也风的Blog</a>, 2009. |
<a href="http://www.someok.com/2009/02/backup-method-mindmap.html">Permalink</a> |
<a href="http://www.someok.com/2009/02/backup-method-mindmap.html#comments">6 comments</a>
<br/>
Post tags: <a href="http://www.someok.com/tag/backup" rel="tag">backup</a>, Categories: <a href="http://www.someok.com/category/it" title="View all posts in 软硬兼施" rel="category tag">软硬兼施</a>
</small></p>

<a href="http://twitter.com/someok" title="来吧，我在Twitter"><img src="http://static.someok.com/images/icon/twitter5.gif" /></a>
<img src="http://img.tongji.linezing.com/990688/tongji.php" />
]]></content:encoded>
			<wfw:commentRss>http://www.someok.com/2009/02/backup-method-mindmap.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>备份才是王道</title>
		<link>http://www.someok.com/2008/06/backup-wp.html</link>
		<comments>http://www.someok.com/2008/06/backup-wp.html#comments</comments>
		<pubDate>Mon, 16 Jun 2008 15:52:50 +0000</pubDate>
		<dc:creator>郁也风</dc:creator>
				<category><![CDATA[软硬兼施]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[host]]></category>

		<guid isPermaLink="false">http://www.someok.com/?p=489</guid>
		<description><![CDATA[在twiter上看到webleon说到选择blogger.com的ftp发布而不是自购主机上wordpress的原因是“WP的话服务器有什么事，文章就全没了”，而“用blogger最大的好处是不用担心数据丢失，只要关心输出就好了。”这应该算是一种蛮普遍的想法了，不过我们必须认识到的一点是：网络上，安全永远是相对的。wp可能会丢掉所有文章，而用blogger.com则可能会丢失blogger帐号。 像我现在最担心的就是我的gmail帐号，这玩意已经是我网络工作台的核心，如果丢失，损失想想都是头大，而gmail帐号丢失又是很可能出现的情况，毕竟已经有好几辆前车为鉴。于是我现在都是将邮件自动转发到yahoo邮箱里面，原则就是损失能挽回多少是多少。 拉拉杂杂这一堆，想说的其实就是：备份才是硬道理！ 下面介绍一下我常用的备份策略： 关于虚拟主机与WordPress备份： 当初也是像webleon一样，用的blogger.com的ftp发布功能，不过后来发现wp相比blogger实在强大的过分，于是也就毅然决然地转了，虽说花钱买dreamhost有点肉疼。 由于与webleon一样的担心，所以第一件事就是寻找相关备份工具。还好，网络之上无新事，你想到的，别人都已想到，而且也已经做出来了。WordPress Database Backup备份数据库，cwRsync备份主机上的文件，具体方法可参见我当初写的那篇虚拟主机数据备份一法。 关于Google Reader的Feed备份： 【注：这个方法我只是在我用的dreamhost主机上测试了，其它地方不保证可用】 google的东西也不敢保证绝对安全，所以能备份还是尽量备份。不过GR没有自动导出opml的工具（我没找到），于是我就写了个python脚本（第一次用python，狂翻api攒出来的，只是满足自己需要，所以也没考虑到易用性），扔到主机的cron job里面跑，每天运行一次，将opml导出后发到gmail邮箱里面。 有需要的，可以下载：Google Reader OPML Export 需要手工修改一些地方： 找到 server = smtplib.SMTP(&#8216;mail.xxxx.com&#8217;) 和 server.login(&#8216;xxx&#8217;, &#8216;xxxxx&#8217;) ，将xxx改为自己的mail服务器地址与登录用户名、密码，有虚拟主机的话，这些都不是问题； 找到 server.sendmail(&#8216;xxx@xxxx.com&#8217;, emailAddr, msg.as_string()) ，将前面的邮件地址改为自己在主机上面的邮件地址； 找到 readers = ({&#8220;user&#8221;:&#8221;xxx1&#8243;, &#8220;email&#8221;:&#8221;xxx1@gmail.com&#8221;, &#8220;sid&#8221;:&#8221;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&#8221;}&#8230; 这儿可以配置多个需要导出的gr。user后面的随便写，只是邮件里面好看而已，email是目标地址，sid则是从gr的cookie中弄出来的，这个需要找个cookie查看工具，然后将那一大串sid值copy过来； 扔到corn job里面就可以了。 以后有空，可以改写一下，至少将这些配置改的方便些。 这个脚本对于多数人是没意义的，不过没准有些人需要（就像老郁这样的）。另外，既然自己买主机了，这一堆相关的配置也就肯定不是太难的事了，所以我也不需要多费唇舌。 与虚拟主机相关的一些备份基本就这些了，以后有新的东西再补充吧（唉，本来没想写这么一堆的，估计都没什么人看，残念） 要是有啥想法就直接告诉我吧 Related Posts: 遭遇Google新界面 还是Google Reader 试用Google Reader 虚拟主机数据备份一法 续费dreamhost © [...]]]></description>
			<content:encoded><![CDATA[<p>在twiter上看到webleon说到选择blogger.com的ftp发布而不是自购主机上wordpress的原因是“<a class="external" href="http://twitter.com/webleon/statuses/836022083">WP的话服务器有什么事，文章就全没了</a>”，而“<a class="external" href="http://twitter.com/webleon/statuses/836025668">用blogger最大的好处是不用担心数据丢失，只要关心输出就好了。</a>”这应该算是一种蛮普遍的想法了，不过我们必须认识到的一点是：网络上，安全永远是相对的。wp可能会丢掉所有文章，而用blogger.com则可能会丢失blogger帐号。</p>
<p>像我现在最担心的就是我的gmail帐号，这玩意已经是我网络工作台的核心，如果丢失，损失想想都是头大，而gmail帐号丢失又是很可能出现的情况，毕竟已经有好几辆前车为鉴。于是我现在都是将邮件自动转发到yahoo邮箱里面，原则就是<strong>损失能挽回多少是多少</strong>。</p>
<p>拉拉杂杂这一堆，想说的其实就是：备份才是硬道理！</p>
<p>下面介绍一下我常用的备份策略：</p>
<h3>关于虚拟主机与WordPress备份：</h3>
<p>当初也是像webleon一样，用的blogger.com的ftp发布功能，不过后来发现wp相比blogger实在强大的过分，于是也就毅然决然地<a href="http://www.someok.com/2007/08/move-from-blogger-to-wordpress.html">转了</a>，虽说花钱买dreamhost有点肉疼。</p>
<p>由于与webleon一样的担心，所以第一件事就是寻找相关备份工具。还好，网络之上无新事，你想到的，别人都已想到，而且也已经做出来了。<a class="external" href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a>备份数据库，<a class="external" href="http://www.itefix.no/cwrsync/">cwRsync</a>备份主机上的文件，具体方法可参见我当初写的那篇<a href="http://www.someok.com/2007/09/web-host-backup.html">虚拟主机数据备份一法</a>。</p>
<h3>关于Google Reader的Feed备份：</h3>
<p>【注：这个方法我只是在我用的dreamhost主机上测试了，其它地方不保证可用】</p>
<p>google的东西也不敢保证绝对安全，所以能备份还是尽量备份。不过GR没有自动导出opml的工具（我没找到），于是我就写了个python脚本（第一次用python，狂翻api攒出来的，只是满足自己需要，所以也没考虑到易用性），扔到主机的cron job里面跑，每天运行一次，将opml导出后发到gmail邮箱里面。</p>
<p>有需要的，可以下载：<a href="http://www.someok.com/wp-content/uploads/2008/06/googlereaderopmlexport.py">Google Reader OPML Export</a></p>
<blockquote><p>需要手工修改一些地方：</p>
<ol>
<li>找到 server = smtplib.SMTP(&#8216;mail.xxxx.com&#8217;) 和 server.login(&#8216;xxx&#8217;, &#8216;xxxxx&#8217;) ，将xxx改为自己的mail服务器地址与登录用户名、密码，有虚拟主机的话，这些都不是问题；</li>
<li>找到 server.sendmail(&#8216;xxx@xxxx.com&#8217;, emailAddr, msg.as_string()) ，将前面的邮件地址改为自己在主机上面的邮件地址；</li>
<li>找到 readers = ({&#8220;user&#8221;:&#8221;xxx1&#8243;, &#8220;email&#8221;:&#8221;xxx1@gmail.com&#8221;, &#8220;sid&#8221;:&#8221;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&#8221;}&#8230;<br />
这儿可以配置多个需要导出的gr。user后面的随便写，只是邮件里面好看而已，email是目标地址，sid则是从gr的cookie中弄出来的，这个需要找个cookie查看工具，然后将那一大串sid值copy过来；</li>
<li>扔到corn job里面就可以了。</li>
</ol>
<p>以后有空，可以改写一下，至少将这些配置改的方便些。</p></blockquote>
<p>这个脚本对于多数人是没意义的，不过没准有些人需要（就像老郁这样的）。另外，既然自己买主机了，这一堆相关的配置也就肯定不是太难的事了，所以我也不需要多费唇舌。</p>
<p>与虚拟主机相关的一些备份基本就这些了，以后有新的东西再补充吧（唉，本来没想写这么一堆的，估计都没什么人看，残念）</p>
<img src="http://static.someok.com/images/icon/someok.png" />
<a href="http://www.someok.com/2008/06/backup-wp.html#respond">
要是有啥想法就直接告诉我吧
</a>

<?php
	if ( function_exists('st_related_posts')):
?>
<div class="related-posts">
<span>Related Posts:</span>
	
<!-- Generated by Simple Tags 1.8 - http://wordpress.org/extend/plugins/simple-tags -->
	<ul class="st-related-posts">
	<li><a href="http://www.someok.com/2007/05/google-new-ui.html" title="遭遇Google新界面 at 2007-05-16 ( 0 )">遭遇Google新界面</a></li>
	<li><a href="http://www.someok.com/2005/10/google-reader_12.html" title="还是Google Reader at 2005-10-12 ( 0 )">还是Google Reader</a></li>
	<li><a href="http://www.someok.com/2005/10/google-reader.html" title="试用Google Reader at 2005-10-12 ( 0 )">试用Google Reader</a></li>
	<li><a href="http://www.someok.com/2007/09/web-host-backup.html" title="虚拟主机数据备份一法 at 2007-09-29 ( 2 )">虚拟主机数据备份一法</a></li>
	<li><a href="http://www.someok.com/2008/04/continue-use-dreamhost.html" title="续费dreamhost at 2008-04-08 ( 1 )">续费dreamhost</a></li>
</ul>


</div>
<?php endif ?>

<hr />
<p><small>© 郁也风 for <a href="http://www.someok.com">郁也风的Blog</a>, 2008. |
<a href="http://www.someok.com/2008/06/backup-wp.html">Permalink</a> |
<a href="http://www.someok.com/2008/06/backup-wp.html#comments">10 comments</a>
<br/>
Post tags: <a href="http://www.someok.com/tag/backup" rel="tag">backup</a>, <a href="http://www.someok.com/tag/google" rel="tag">google</a>, <a href="http://www.someok.com/tag/host" rel="tag">host</a>, Categories: <a href="http://www.someok.com/category/it" title="View all posts in 软硬兼施" rel="category tag">软硬兼施</a>
</small></p>

<a href="http://twitter.com/someok" title="来吧，我在Twitter"><img src="http://static.someok.com/images/icon/twitter5.gif" /></a>
<img src="http://img.tongji.linezing.com/990688/tongji.php" />
]]></content:encoded>
			<wfw:commentRss>http://www.someok.com/2008/06/backup-wp.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>虚拟主机数据备份一法</title>
		<link>http://www.someok.com/2007/09/web-host-backup.html</link>
		<comments>http://www.someok.com/2007/09/web-host-backup.html#comments</comments>
		<pubDate>Sat, 29 Sep 2007 15:10:24 +0000</pubDate>
		<dc:creator>郁也风</dc:creator>
				<category><![CDATA[软硬兼施]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.someok2.com/2007/09/web-host-backup.html</guid>
		<description><![CDATA[刚刚在博客联盟看到篇讲解怎么备份虚拟主机上的WordPress数据的文章，觉得还不错，给他做点补充吧。 1、数据库备份，这个当然还是wp的插件WordPress Database Backup用着方便，我现在是一天让它发一份数据库备份到我的Gmail邮箱里面。 2、对于文件备份，他介绍的是FTP备份，这个有点麻烦，而且每次也得手工操作（当然，也可以写脚本，但是多数人可能就费事了）。在这儿用个软件将服务器上数据同步到本地是最方便的了，我就推荐款命令行工具吧。 Unix、Linux下面有个rsync用来做数据同步很方便， Windows下面有款cwRsync也可以达到同样效果。由于是命令行，所以需要写个bat批处理： @ECHO OFF ECHO ::开始备份服务器上面的文件到本地目录 &#160; rsync -ravP --links --hard-links --times --delete --exclude='excludePath/*' --exclude='download/*' USER@YOUR.com:'/home/USER/path1 /home/USER/path2 /home/USER/path3' ./site &#160; ECHO ::数据备份结束 @ECHO ON &#160; PAUSE 算得上简单了，&#8211;exclude可以多个，用来过滤那些不需要同步的目录或文件。 USER@YOUR.com则是登录虚拟主机的地址和用户名，后面的path1、path2、path3等，则是你想要同步的文件夹，会在你的本机目录里面按照服务器的结构同步，也就是后面的“./site”。 具体其它的参数还可以参考其帮助文档。 这个其实也算是个手工的操作，点击批处理命令之后还需要输入服务器密码，不过我觉得已经够方便的了，毕竟文件不像数据库那样变化频繁。 要是有啥想法就直接告诉我吧 Related Posts: 难以割舍的D版 &#8211; 非编程类 软件保护隐私 调整了Category 诡异的IE问题及诡异的解决方法 解决Windows下面Apache2和Subversion1.3.x协作问题 © 郁也风 for 郁也风的Blog, 2007. &#124; Permalink &#124; 2 comments [...]]]></description>
			<content:encoded><![CDATA[<p>刚刚在博客联盟看到篇讲解<a href="http://blogunion.org/problogger/tips-for-backup.html">怎么备份虚拟主机上的WordPress数据</a>的文章，觉得还不错，给他做点补充吧。</p>
<p>1、数据库备份，这个当然还是wp的插件<a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a>用着方便，我现在是一天让它发一份数据库备份到我的Gmail邮箱里面。</p>
<p>2、对于文件备份，他介绍的是FTP备份，这个有点麻烦，而且每次也得手工操作（当然，也可以写脚本，但是多数人可能就费事了）。在这儿用个软件将服务器上数据同步到本地是最方便的了，我就推荐款命令行工具吧。</p>
<p> <a href="http://www.someok.com/2007/09/web-host-backup.html#more-371" class="more-link">(more&#8230;)</a></p>
<img src="http://static.someok.com/images/icon/someok.png" />
<a href="http://www.someok.com/2007/09/web-host-backup.html#respond">
要是有啥想法就直接告诉我吧
</a>

<?php
	if ( function_exists('st_related_posts')):
?>
<div class="related-posts">
<span>Related Posts:</span>
	
<!-- Generated by Simple Tags 1.8 - http://wordpress.org/extend/plugins/simple-tags -->
	<ul class="st-related-posts">
	<li><a href="http://www.someok.com/2006/01/d.html" title="难以割舍的D版 &#8211; 非编程类 at 2006-01-10 ( 4 )">难以割舍的D版 &#8211; 非编程类</a></li>
	<li><a href="http://www.someok.com/2008/02/truecrypt-for-privacy.html" title="软件保护隐私 at 2008-02-12 ( 0 )">软件保护隐私</a></li>
	<li><a href="http://www.someok.com/2007/08/adjust-categories.html" title="调整了Category at 2007-08-08 ( 0 )">调整了Category</a></li>
	<li><a href="http://www.someok.com/2007/09/eerie-ie-problem-and-eerie-solution.html" title="诡异的IE问题及诡异的解决方法 at 2007-09-07 ( 0 )">诡异的IE问题及诡异的解决方法</a></li>
	<li><a href="http://www.someok.com/2006/08/windowsapache2subversion13x.html" title="解决Windows下面Apache2和Subversion1.3.x协作问题 at 2006-08-22 ( 0 )">解决Windows下面Apache2和Subversion1.3.x协作问题</a></li>
</ul>


</div>
<?php endif ?>

<hr />
<p><small>© 郁也风 for <a href="http://www.someok.com">郁也风的Blog</a>, 2007. |
<a href="http://www.someok.com/2007/09/web-host-backup.html">Permalink</a> |
<a href="http://www.someok.com/2007/09/web-host-backup.html#comments">2 comments</a>
<br/>
Post tags: <a href="http://www.someok.com/tag/backup" rel="tag">backup</a>, <a href="http://www.someok.com/tag/software" rel="tag">software</a>, <a href="http://www.someok.com/tag/wordpress" rel="tag">wordpress</a>, Categories: <a href="http://www.someok.com/category/it" title="View all posts in 软硬兼施" rel="category tag">软硬兼施</a>
</small></p>

<a href="http://twitter.com/someok" title="来吧，我在Twitter"><img src="http://static.someok.com/images/icon/twitter5.gif" /></a>
<img src="http://img.tongji.linezing.com/990688/tongji.php" />
]]></content:encoded>
			<wfw:commentRss>http://www.someok.com/2007/09/web-host-backup.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
