数据传输
🌐 Data transfer
Page summary:
strapi transfer命令在两个具有相同模式的 Strapi 实例之间传输数据,使用传输令牌进行授权和身份验证,从而传输内容、文件和配置。🌐 The
strapi transfercommand streams data between two Strapi instances with identical schemas, transferring content, files, and configuration using transfer tokens for authorization and authentication.
strapi transfer 命令是 数据管理功能 的一部分,用于将数据从一个 Strapi 实例流式传输到另一个 Strapi 实例。transfer 命令使用严格的模式匹配,这意味着你的两个 Strapi 实例需要完全相同,唯一的区别是包含的数据。默认的 transfer 命令会传输你的内容(实体和关系)、文件(资源)、项目配置以及模式。该命令允许你传输数据:
🌐 The strapi transfer command is part of the Data Management feature and streams your data from one Strapi instance to another Strapi instance. The transfer command uses strict schema matching, meaning your two Strapi instances need to be exact copies of each other except for the contained data. The default transfer command transfers your content (entities and relations), files (assets), project configuration, and schemas. The command allows you to transfer data:
- 从本地 Strapi 实例到远程 Strapi 实例
- 从远程 Strapi 实例到本地 Strapi 实例
以下文档详细说明了可用于自定义数据传输的选项。传输命令及所有可用选项均通过 Strapi CLI 运行。
🌐 The following documentation details the available options to customize your data transfer. The transfer command and all of the available options are run using the Strapi CLI.
- 如果你在目标实例中使用 SQLite 数据库,当
transfer操作正在运行时,其他数据库连接将被阻塞。