<?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>BlueHost美国虚拟主机使用指导 &#187; 备份</title>
	<atom:link href="http://www.bluehostcn.com/archives/tag/%e5%a4%87%e4%bb%bd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bluehostcn.com</link>
	<description>BlueHost导购，使用指南</description>
	<lastBuildDate>Thu, 13 May 2010 07:45:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bluehost使用SSH备份恢复数据库</title>
		<link>http://www.bluehostcn.com/archives/549</link>
		<comments>http://www.bluehostcn.com/archives/549#comments</comments>
		<pubDate>Mon, 18 Jan 2010 09:14:21 +0000</pubDate>
		<dc:creator>user1</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[恢复]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=549</guid>
		<description><![CDATA[购买了Bluehost主机的用户可以免费申请开通SSH，申请开通SSH，可以参考这里：http://bbs.idcspy.com/thread-41314-1-1.html
下面，我们就介绍一下Bluehost主机如何通过SSH备份、恢复数据库。
备份数据库：
1、使用putty登录SSH，输入主机用户名和密码

2、显示登录成功信息，表示已经登录进去了

3、使用命令&#8221;cd public_html&#8221;进入到public_html目录下，因为我们要把数据库备份文件放到这个目录下面（你需要把数据库备份文件放到哪个目录下面，就要先进入到这个目录）

4、输入备份数据库命令：mysqldump -u数据库用户名 -p数据库密码 数据库名称 &#62; 数据库备份文件名.sql（不要用中文）

5、敲回车，稍等片刻，如果没有什么错误提示就表示数据库已经备份成功了，输入命令: ls就能查看当前目录下的文件和文件夹，可以看到上面备份的数据库文件

恢复数据库
准备工作：在恢复数据库前，要先创建好数据库、数据库用户，把数据库用户绑定到数据库上面
1、进入到你存放数据库文件的那个目录下面，输入命令：mysql -u数据库用户名 -p数据库密码 数据库名称 &#60; 数据库备份文件.sql

2、敲回车，稍等片刻，如果没有出现什么提示信息，恭喜你，数据库已经导入成功了
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/549/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueHost备份文件</title>
		<link>http://www.bluehostcn.com/archives/200</link>
		<comments>http://www.bluehostcn.com/archives/200#comments</comments>
		<pubDate>Thu, 08 Jan 2009 03:21:27 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=200</guid>
		<description><![CDATA[BlueHost备份文件的最好方法是使用文件管理器，而不是使用SSH，使用文件管理器备份文件方法如下：
1、创建一个临时文件夹，这里把它命名为temp1
2、把压缩文件上传到临时文件夹里，把这个备份文件解压缩，把这个备份文件移动到相应的文件夹
3、如你移动的是文件夹，你需要确认把权限设定为755
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/200/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bluehost主机备份</title>
		<link>http://www.bluehostcn.com/archives/181</link>
		<comments>http://www.bluehostcn.com/archives/181#comments</comments>
		<pubDate>Tue, 16 Dec 2008 02:01:53 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=181</guid>
		<description><![CDATA[Bluehost主机备份主要的方法有：
全备份
全备份（Full Backup），登陆cPanel,cPanel&#8211;&#62;File&#8211;&#62;Backups,进入备份页面。全备份数据可以用于将帐户移动到另外一个服务器上，可以选择生成备份到虚拟主机上或下载到本地。但全备份只能由管理员来恢复,不能支持由用户使用cPanel自行恢复。
部分备份
主目录备份：备份主目录下的文件。另外用cPanel中的文件管理器压缩并下载需要备份的网站目录。
MySQL备份：这个功能是日常维护最为常用和比较关键的，我们通过分别备份MySQL和某个网站目录可 以得到一个完整的网站备份。点击需要备份的MySQL连接，即可将压缩后的MySQL备份文件下载到本地。需要恢复数据库，把本地的备份文件上传上去就可以了。
如果数据库比较大的时候，建议你在SSH下备份
备份：mysqldump -p 数据库名 -u 数据库用户名 &#62;bak.sql
还原：mysql -p 数据库名 -u 数据库用户名
超爽，几百M的数据库不到两分钟就好了，而且完全无误。
mysql backup
Email备份：email备份可以备份转发和过滤的设置。
如果要备份某一个网站的目录，只需要进入cpanel，选择压缩网站所在的文件夹就可以了，压缩好之后，可以放在一个专门的备份目录里面，或者下载到本地都可以。
总的来说，Bluehost主机备份还是挺方便的，如果你的网站需要定期备份的话，可以用bluehost cron jobs执行定时任务，点击图标进入Cron jobs设置，选择stand ard 在comand里面填入：mysqldump -p 数据库名 -u 数据库用户名 &#62;路径/bak.sql 然后选择定时执行的时间就可以了。
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/181/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
