WordPress软件知识:All in One WP Migration迁移备份插件与WP-CLI的集成,允许您从命令行运行迁移。它添加了可以从CLI运行的备份和还原命令。
备份功能(backup)
创建一个新的备份文件。
示例:
wp ai1wm backup
SUBCOMMANDS:
| OPTION | DESCRIPTION | EXAMPLE |
|---|---|---|
| [--sites] | Create a new backup file for WP Multisite ( Sub-Sites/Subdomain-Sites )
为WP Multisite创建一个新的备份文件(Sub-Sites / Subdomain-Sites) |
wp ai1wm backup --sites |
| [--exclude-spam-comments] | Creates a backup file without spam comments
创建没有垃圾评论的备份文件 |
wp ai1wm backup --exclude-spam-comments |
| [--exclude-post-revisions] | Creates a backup file without post revisions
创建一个没有后期修订的备份文件 |
wp ai1wm backup --exclude-post-revisions |
| [--exclude-media] | Creates a backup file without media library files
创建没有媒体库文件的备份文件 |
wp ai1wm backup --exclude-media |
| [--exclude-themes] | Creates a backup file without any themes.
创建没有任何主题的备份文件。 |
wp ai1wm backup --exclude-themes |
| [--exclude-inactive-themes] | Creates a backup file without currently inactive themes.
创建没有当前非活动主题的备份文件。 |
wp ai1wm backup --exclude-inactive-themes |
| [--exclude-muplugins] | Creates a backup file without must-use plugins.
创建没有必须使用的插件的备份文件。 |
wp ai1wm backup --exclude-muplugins |
| [--exclude-plugins] | Creates a backup file without plugins.
创建没有插件的备份文件。 |
wp ai1wm backup --exclude-plugins |
| [--exclude-inactive-plugins] | Creates a backup file without currently inactive plugins.
创建没有当前无效插件的备份文件。 |
wp ai1wm backup --exclude-inactive-plugins |
| [--exclude-cache] | Creates a backup file without cache files.
创建没有缓存文件的备份文件。 |
wp ai1wm backup --exclude-cache |
| [--exclude-database] | Creates a backup file without the database.
创建没有数据库的备份文件。 |
wp ai1wm backup --exclude-database |
| [--exclude-email-replace] | Creates a backup file without replacing email domain.
创建备份文件而不替换电子邮件域。 |
wp ai1wm backup --exclude-email-replace |
| [--replace "find" "replace"] | Finds and replaces text in the database. Use --replace flag before each pair for replacement.
查找并替换数据库中的文本。在每对替换之前使用--replace标志。 |
wp ai1wm backup --replace "wordpress" "WordPress" |
| SIMULTANEOUS USE | All options be used simultaneously except --list can. Replace option could be used between other options.
除了--list可以使用之外,所有选项都可以同时使用。替换选项可以在其他选项之间使用。 |
wp ai1wm backup --exclude-inactive-themes --replace "find" "replace" --exclude-cache --replace "old text" "new text" |
| Restores a backup. The filename must be provided and must be located in ai1wm-backups directory.
恢复备份。必须提供文件名,并且必须位于ai1wm-backups目录中。 |
wp ai1wm restore |
恢复
restore
恢复备份。必须提供文件名,并且必须位于ai1wm-backups目录中。
例子:
wp ai1wm restore migration-wp-20170913-095743-931.wpress
备份清单
备份列表– wp ai1wm列表备份
获取备份文件列表,使用此选项将不会创建备份,并且将忽略与之一起设置的任何其他选项。