<?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>LiangXu Wang &#187; backup</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>转移mailman</title>
		<link>http://wlx.westgis.ac.cn/395/</link>
		<comments>http://wlx.westgis.ac.cn/395/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 10:12:44 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mailman]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/395/</guid>
		<description><![CDATA[mailman所在服务器的硬盘损坏，需要转移到另外一个服务器上。 需要备份的目录：/var/lib/mailman/ 在新服务器上搭建好mailman环境后，拷贝原服务器上的archives,lists,data三个目录下的所有内容。 之后： sudo chown -R list:list /var/lib/mailman 在继续搭建mailman的WEB环境之后，就可以测试了。]]></description>
			<content:encoded><![CDATA[<p>mailman所在服务器的硬盘损坏，需要转移到另外一个服务器上。<br />
需要备份的目录：/var/lib/mailman/<br />
在新服务器上搭建好mailman环境后，拷贝原服务器上的archives,lists,data三个目录下的所有内容。<br />
之后：</p>
<blockquote><p>sudo chown -R list:list /var/lib/mailman</p></blockquote>
<p>在继续搭建mailman的WEB环境之后，就可以测试了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/395/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>完整备份evolution</title>
		<link>http://wlx.westgis.ac.cn/222/</link>
		<comments>http://wlx.westgis.ac.cn/222/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 09:42:42 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[evolution]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/222/</guid>
		<description><![CDATA[一直以为只要备份了~/.evolution目录，就可以保证evoultuion里的信息才不丢失。今天才发现是错误的，这样只能保证邮件不丢，其他的如联系人、备忘、日历等都会丢失的。 下面是在ubuntuforums搜索到的信息： I&#8217;ve answered this question before, so I&#8217;ve been reluctant to jump into this thread&#8230; To fully backup and restore Evolution data, including signatures, email account configuration, etc, you need to backup the following files and directories: &#8211;directories&#8211; 1) &#8230; <a href="http://wlx.westgis.ac.cn/222/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>一直以为只要备份了~/.evolution目录，就可以保证evoultuion里的信息才不丢失。今天才发现是错误的，这样只能保证邮件不丢，其他的如联系人、备忘、日历等都会丢失的。<br />
下面是在<a href="http://www.ubuntuforums.org">ubuntuforums</a>搜索到的信息：</p>
<blockquote><p>I&#8217;ve answered this question before, so I&#8217;ve been reluctant to jump into this thread&#8230;</p>
<p>To fully backup and restore Evolution data, including signatures, email account configuration, etc, you need to backup the following files and directories:</p>
<p>&#8211;directories&#8211;<br />
1) ~/.evolution<br />
2) ~/.gconf/apps/evolution</p>
<p>&#8211;files&#8211;<br />
3) ~/.gnome2_private/Evolution</p>
<p>To restore the files, run Evolution on the new machine and complete the first run wizard. Then shut down Evolution and copy the backup files to their appropriate locations. Reboot the machine or stop/restart the Evolution data server (important step). When you launch Evolution after these steps your email, contacts, tasks, and settings will be restored. As harryc has noted, make sure your user permissions are set. I usually tar my evolution components, and since I&#8217;m always the first (non-root) user on my Linux machines, when I un-tar and restore the files, the permissions are already set.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/222/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用批处理进行按星期的数据库备份</title>
		<link>http://wlx.westgis.ac.cn/212/</link>
		<comments>http://wlx.westgis.ac.cn/212/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 06:19:13 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/212/</guid>
		<description><![CDATA[需要按星期进 @echo off echo &#8212;&#8212;&#8212;&#8211; echo name: Oracle data export automata utility echo author: WANG Liangxu echo date: 2006-8-7 echo refined by NAN Zhuotong echo documented by NAN Zhuotong echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn REM This &#8230; <a href="http://wlx.westgis.ac.cn/212/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>需要按星期进</p>
<blockquote><p>@echo off<br />
echo &#8212;&#8212;&#8212;&#8211;<br />
echo name: Oracle data export automata utility<br />
echo author: WANG Liangxu<br />
echo date: 2006-8-7<br />
echo refined by NAN Zhuotong<br />
echo documented by NAN Zhuotong<br />
echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn</p>
<p>REM This program is used to export data in Oracle to external files named with current date.<br />
REM A simple export schema is employed. Monday the data will be completely exported.<br />
REM Tuesday through Thursday data will be exported in an incremental manner.<br />
REM Friday, data exported include all the incremental data since the last completed export.<br />
REM Saturday and Sunday incremental export will be employed once more.</p>
<p>REM This program can be used together with Windows plan and task utility. In that way,<br />
REM the program can be enhanced with running by schedule.</p>
<p>echo &#8212;&#8212;&#8212;&#8211;<br />
set w=%date:~13,1%<br />
set d=%date:~0,4%%date:~5,2%%date:~8,2%<br />
rem echo %d%<br />
if %w%==一 goto 1<br />
if %w%==二 goto 2<br />
if %w%==三 goto 3<br />
if %w%==四 goto 4<br />
if %w%==五 goto 5<br />
if %w%==六 goto 6<br />
if %w%==日 goto 7</p>
<p>REM exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/20060807.dmp (complete)<br />
REM exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM Mon： 完全备份（A）<br />
REM Tue： 增量导出（B）<br />
REM Wed： 增量导出（C）<br />
REM Thu： 增量导出（D）<br />
REM Fri： 累计导出（E）<br />
REM Sat： 增量导出（F）<br />
REM Sun： 增量导出（G）</p>
<p>:1<br />
 echo Begin exporting data to file %d%-compl.dmp<br />
 exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/%d%-compl.dmp<br />
 goto end<br />
:2<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:3<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:4<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:5<br />
 echo Begin exporting data to file %d%-cumul.dmp<br />
 exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/%d%-cumul.dmp<br />
 goto end<br />
:6<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:7<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:end</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/212/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>应该backup的几个目录</title>
		<link>http://wlx.westgis.ac.cn/172/</link>
		<comments>http://wlx.westgis.ac.cn/172/#comments</comments>
		<pubDate>Mon, 20 Mar 2006 14:11:01 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/172/</guid>
		<description><![CDATA[几次都只备份了/home目录，今天又看了一遍 Debian GNU/Linux Bible，摘录一下： 应该备份的目录： /home：最重要的目录 /etc：软件的配置，LINUX下的配置基本都放在这个目录下 /var：软件的数据放置目录，若/var/www]]></description>
			<content:encoded><![CDATA[<p>几次都只备份了/home目录，今天又看了一遍 Debian GNU/Linux Bible，摘录一下：<br />
应该备份的目录：<br />
/home：最重要的目录<br />
/etc：软件的配置，LINUX下的配置基本都放在这个目录下<br />
/var：软件的数据放置目录，若/var/www</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/172/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>笔记本与服务器的动态备份</title>
		<link>http://wlx.westgis.ac.cn/77/</link>
		<comments>http://wlx.westgis.ac.cn/77/#comments</comments>
		<pubDate>Tue, 19 Apr 2005 09:22:09 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/77/</guid>
		<description><![CDATA[需求： 笔记本上的home目录，需要动态备份到服务器，以保证数据的安全性。 在重新安装系统的时候，需要在从服务器备份回来。（重新安装系统也方便多了） 解决方案： 考虑到低带宽的应用，使用rsync来进行处理，每次只传输变化的部分。 rsync -a /home/wlx wlx@heihe.mygis.org:/home/wlx/backup_d410 删除多余部分（即本机上删除的，远程也删除） rsync -avP --delete -t /home/wlx wlx@heihe.mygis.org:/home/wlx/backup_d410]]></description>
			<content:encoded><![CDATA[<p>需求：<br />
笔记本上的home目录，需要动态备份到服务器，以保证数据的安全性。<br />
在重新安装系统的时候，需要在从服务器备份回来。（重新安装系统也方便多了）<br />
解决方案：<br />
考虑到低带宽的应用，使用rsync来进行处理，每次只传输变化的部分。</p>
<p>rsync -a /home/wlx  wlx@heihe.mygis.org:/home/wlx/backup_d410</p>
<p>删除多余部分（即本机上删除的，远程也删除）</p>
<pre>
rsync -avP --delete -t /home/wlx wlx@heihe.mygis.org:/home/wlx/backup_d410
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/77/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>数据库自动备份脚本</title>
		<link>http://wlx.westgis.ac.cn/29/</link>
		<comments>http://wlx.westgis.ac.cn/29/#comments</comments>
		<pubDate>Thu, 16 Dec 2004 05:52:26 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/2004/12/16/29/</guid>
		<description><![CDATA[在这儿有一个好的MYSQL自动备份脚本：http://bbs.chinaunix.net/forum/17/041004/418474.html 做了一些简单的修改，以支持同时备份多个数据库。 内容如下： #!/bin/bash #This is a ShellScript For Auto DB Backup #Powered by aspbiz,2004-09 #Modifed by wlx,2004-12 #Setting DBName=wordpress DBUser=root DBPasswd= BackupPath=/www/backup/ LogFile=/www/backup/"$DBName".log DBPath=/var/lib/mysql/ BackupMethod=mysqldump #BackupMethod=mysqlhotcopy #BackupMethod=tar #Setting End NewFile="$BackupPath""$DBName"$(date +%y%m%d).tgz DumpFile="$BackupPath""$DBName"$(date +%y%m%d) OldFile="$BackupPath""$DBName"$(date +%y%m%d --date='5 days ago').tgz echo &#8230; <a href="http://wlx.westgis.ac.cn/29/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在这儿有一个好的MYSQL自动备份脚本：http://bbs.chinaunix.net/forum/17/041004/418474.html</p>
<p>做了一些简单的修改，以支持同时备份多个数据库。<br />
内容如下：</p>
<blockquote><p><code>#!/bin/bash<br />
#This is a ShellScript For Auto DB Backup<br />
#Powered by aspbiz,2004-09<br />
#Modifed by wlx,2004-12</p>
<p>#Setting<br />
DBName=wordpress<br />
DBUser=root<br />
DBPasswd=<br />
BackupPath=/www/backup/<br />
LogFile=/www/backup/"$DBName".log<br />
DBPath=/var/lib/mysql/<br />
BackupMethod=mysqldump<br />
#BackupMethod=mysqlhotcopy<br />
#BackupMethod=tar<br />
#Setting End</p>
<p>NewFile="$BackupPath""$DBName"$(date +%y%m%d).tgz<br />
DumpFile="$BackupPath""$DBName"$(date +%y%m%d)<br />
OldFile="$BackupPath""$DBName"$(date +%y%m%d --date='5 days ago').tgz</p>
<p>echo "-------------------------------------------" &gt;&gt; $LogFile<br />
echo $(date +"%y-%m-%d %H:%M:%S") &gt;&gt; $LogFile<br />
echo "--------------------------" &gt;&gt; $LogFile<br />
#Delete Old File<br />
if [ -f $OldFile ]<br />
then<br />
   rm -f $OldFile &gt;&gt; $LogFile 2&gt;&amp;1<br />
   echo "[$OldFile]Delete Old File Success!" &gt;&gt; $LogFile<br />
else<br />
   echo "[$OldFile]No Old Backup File!" &gt;&gt; $LogFile<br />
fi</p>
<p>if [ -f $NewFile ]<br />
then<br />
   echo "[$NewFile]The Backup File is exists,Can't Backup!" &gt;&gt; $LogFile<br />
else<br />
   case $BackupMethod in<br />
   mysqldump)<br />
      if [ -z $DBPasswd ]<br />
      then<br />
         mysqldump -u $DBUser --opt $DBName &gt; $DumpFile<br />
      else<br />
         mysqldump -u $DBUser -p$DBPasswd --opt $DBName &gt; $DumpFile<br />
      fi<br />
      tar czvf $NewFile $DumpFile &gt;&gt; $LogFile 2&gt;&amp;1<br />
      echo "[$NewFile]Backup Success!" &gt;&gt; $LogFile<br />
      rm -rf $DumpFile<br />
      ;;<br />
   mysqlhotcopy)<br />
      rm -rf $DumpFile<br />
      mkdir $DumpFile<br />
      if [ -z $DBPasswd ]<br />
      then<br />
         mysqlhotcopy -u $DBUser $DBName $DumpFile &gt;&gt; $LogFile 2&gt;&amp;1<br />
      else<br />
         mysqlhotcopy -u $DBUser -p $DBPasswd $DBName $DumpFile &gt;&gt;$LogFile 2&gt;&amp;1<br />
      fi<br />
      tar czvf $NewFile $DumpFile &gt;&gt; $LogFile 2&gt;&amp;1<br />
      echo "[$NewFile]Backup Success!" &gt;&gt; $LogFile<br />
      rm -rf $DumpFile<br />
      ;;<br />
   *)<br />
      /etc/init.d/mysqld stop &gt;/dev/null 2&gt;&amp;1<br />
      tar czvf $NewFile $DBPath$DBName &gt;&gt; $LogFile 2&gt;&amp;1<br />
      /etc/init.d/mysqld start &gt;/dev/null 2&gt;&amp;1<br />
      echo "[$NewFile]Backup Success!" &gt;&gt; $LogFile<br />
      ;;<br />
   esac<br />
fi</p>
<p>echo "-------------------------------------------" &gt;&gt; $LogFile</code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

