使用Drupal还原备份站点 [英] Restore a backup site with Drupal

查看:79
本文介绍了使用Drupal还原备份站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图从Drupal中的Backup and Migrate模块制作的副本中还原备份站点,我按照以下步骤操作:

I'am trying to restore a backup site from a copy made by Backup and Migrate module in Drupal, I followed those steps:

  1. 将drupal文件复制到www目录
  2. 创建一个新的mySQL数据库
  3. 使用新数据库安装drupal
  4. 启用备份和迁移模块
  5. 执行了还原

我遇到了这个错误:

Notice: Undefined index: files in theme_backup_migrate_file_list() (line 954 of .../sites/default/modules/backup_migrate/backup_migrate.module)

备份和迁移"模块的开发版本解决了该问题.

the issue was solved by the dev version of "Backup and Migrate" module.

使用dev版本创建备份并在主机中使用相同版本(dev)还原后,结果一无所获,我的网站仍处于原始状态,admin/reports/dblog中也没有任何更改.

after creating a backup with the dev version and restore it with the same version (dev) in the host machine I get nothing as result, nothing was changed my site still virgin and nothing in admin/reports/dblog.

可能是可能的问题原因而导致的设置缺失:

There are possible missing setting that be probable issue cause:

  1. 数据库设置:我具有相同的设置(数据库名称,表前缀...)

  1. DB setting : I have the same setting (db name , table prefix ...)

php.ini memory_limit = 128M,我的备份文件是126M

php.ini memory_limit = 128M and my backup file is 126M

启用了应用模块mod_rewrite

请提供任何有用的提示.我不知道我在这里想念什么.

Any Helpful hint please. I don't know what I am missing here.

推荐答案

我的建议是:

  1. 将文件复制到www

  1. Copy files to www

使用phpMyAdmin或类似工具创建空数据库并导入创建的转储B& M.

Use phpMyAdmin or similar tool to create empty database and import dump B&M created.

更改/sites/default/settings.php以连接到新数据库.

Change /sites/default/settings.php to connect to your new database.

登录到后端并检查Configuration-> Media-> File system是可写到drupal的所有必需路径.只需单击保存配置",如果所有字段都没有红色边框,则可以.如果有的话,那么您必须更改目录访问标志(所有者,无论曾经使用过什么),以使这些目录可写.

Login to back-end and check on Configuration -> Media -> File system are all necessary paths writable to drupal. Just click "Save configuration" and if none of the fields get red border then it's ok. If some does then you have to change dir access flags (owner, what ever) to make those dirs writable.

这篇关于使用Drupal还原备份站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆