最新消息:

用帝国备份王备份恢复boblog

未分类 admin 3784浏览 0评论

1、FTP上传帝国备份王至旧的Boblog空间,通过URL登陆帝国备份王(默认帐号密码:admin/123456。强烈建议修改默认密码!);
2、在帝国备份王“参数设置”里,设置mysql数据库的相关参数,如果没问题的话,点“提交”会返回“设置参数成功”的信息;
3、点击“备份数据”菜单,选择需要备份的数据库(默认都已选中),点击“开始备份”即可;
4、利用FTP客户端工具(FlashFXP、CuteFTP等)登陆旧的BoBlog空间,将所以有的数据拉回本地;
5、在新的空间(如:LAMP或LNMP等)里,将刚拉回来的数据全部上传至新空间里;
6、创建虚拟站点配置文件、伪静态及配置文件权限等。
(附:BoBlog的nginx的伪静态规则,写入BoBlog虚拟站点配置文件里面)

   if (!-e $request_filename)
   {
      rewrite ^/post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /read.php?entryid=$1&page=$2&part=$3 last;
      rewrite ^/page/([0-9]+)/([0-9]+)/?$ /index.php?mode=$1&page=$2 last;
      rewrite ^/starred/([0-9]+)/?([0-9]+)?/?$ /star.php?mode=$1&page=$2 last;
      rewrite ^/category/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=category_$1&mode=$2&page=$3 last;
      rewrite ^/archiver/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4 last;
      rewrite ^/date/([0-9]+)/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=showday_$1-$2-$3&mode=$4&page=$5 last;
      rewrite ^/user/([0-9]+)/?$ /view.php?go=user_$1 last;
      rewrite ^/tags/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ /tag.php?tag=$1&mode=$2&page=$3 last;
      rewrite ^/component/id/([0-9]+)/?$ /page.php?pageid=$1 last;
      rewrite ^/component/([^/]+)/?$ /page.php?pagealias=$1 last;

      #Force redirection for old rules
      rewrite ^/read\.php/([0-9]+)\.htm$ http://$host/post/$1/ permanent;
      rewrite ^/post/([0-9]+)\.htm$ http://$host/post/$1/ permanent;
      rewrite ^/post/([0-9]+)\_([0-9]+)\.htm$ http://$host/post/$1/$2/ permanent;
      rewrite ^/post/([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/post/$1/$2/$3/ permanent;
      rewrite ^/index\_([0-9]+)\_([0-9]+)\.htm$ http://$host/page/$1/$2/ permanent;
      rewrite ^/star\_([0-9]+)\_([0-9]+)\.htm$ http://$host/starred/$1/$2/ permanent;
      rewrite ^/category\_([0-9]+)\.htm$ http://$host/category/$1/ permanent;
      rewrite ^/category\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/category/$1/$2/$3/ permanent;
      rewrite ^/archive\_([0-9]+)\_([0-9]+)\.htm$ http://$host/archiver/$1/$2/ permanent;
      rewrite ^/archive\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/archiver/$1/$2/$3/$4/ permanent;
      rewrite ^/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/date/$1/$2/$3/ permanent;
      rewrite ^/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/date/$1/$2/$3/$4/$5/ permanent;

      #Filename alias
      rewrite ^/([a-zA-Z0-9_-]+)/?([0-9]+)?/?([0-9]+)?/?$ /read.php?blogalias=$1&page=$2&part=$3 last;
   }

7、通过Shell访问新空间地址,将以前旧数据库服务器地址(database.xxxx.org)修改为新的数据库服务器地址;

# find . -type f -name "*" | xargs grep "database.xxxx.org"

# grep database.xxxx.org . -rf       //查找保存数据库服务器地址的文件

8、通过URL访问新空间里的帝国备份王,配置mysql数据库的相关参数;
9、点击“恢复数据”,将数据进行恢复;
10、通过URL访问新的空间地址,并进入BoBlog进行缓存的更新即可。
Tags – , , ,

转载请注明:爱开源 » 用帝国备份王备份恢复boblog

您必须 登录 才能发表评论!