文档文档

influx backup

The influx backup command backs up data stored in InfluxDB to a specified directory.(influx backup 命令将存储在 InfluxDB 中的数据备份到指定目录。)

Usage(用法)

influx backup [flags] path
  • Copy
  • Fill window

Flags(标志)

Flag(标志)Description(描述)Input type(输入类型)Maps to ?(映射到 ?
-c--active-config(活动配置)CLI configuration to use for command(用于命令的 CLI 配置)string(字符串)
--bucket-idID of the bucket to back up from (mutually exclusive with --bucket)(要备份的存储桶 ID(与 --bucket 互斥))string(字符串)
-b--bucketName of the bucket to back up from (mutually exclusive with --bucket-id)(要备份的存储桶名称(与 --bucket-id 互斥))string(字符串)
--compression(压缩)By default, gzip argument enables compression on downloaded files. Set to none to disable compression.(默认情况下,gzip 参数启用下载文件的压缩。设置为 none 以禁用压缩。)string(字符串)
--configs-path(配置路径)Path to influx CLI configurations (default ~/.influxdbv2/configs)(influx CLI 配置的路径(默认为 ~/.influxdbv2/configs))string(字符串)INFLUX_CONFIGS_PATH
-h--help(帮助)Help for the backup command(backup 命令的帮助)
--hide-headers(隐藏标题)Hide table headers (default false)(隐藏表格标题(默认为 false))INFLUX_HIDE_HEADERS
--host(主机)HTTP address of InfluxDB (default: https://127.0.0.1:8086)(InfluxDB 的 HTTP 地址(默认为:https://127.0.0.1:8086))string(字符串)INFLUX_HOST
--http-debug(HTTP 调试)Inspect communication with InfluxDB servers.(检查与 InfluxDB 服务器的通信。)string(字符串)
--json(JSON)Output data as JSON (default false)(将数据输出为 JSON(默认为 false))INFLUX_OUTPUT_JSON
-o--org(组织)Organization name (mutually exclusive with --org-id)(组织名称(与 --org-id 互斥))string(字符串)INFLUX_ORG
--org-id(组织 ID)Organization ID (mutually exclusive with --org)(组织 ID(与 --org 互斥))string(字符串)INFLUX_ORG_ID
--skip-verify(跳过验证)Skip TLS certificate verification(跳过 TLS 证书验证)string(字符串)INFLUX_SKIP_VERIFY
-t--token(令牌)API token(API 令牌)string(字符串)INFLUX_TOKEN

Examples(示例)

Authentication credentials(身份验证凭据)

The examples below assume your InfluxDB host, organization, and token are provided by either the active influx CLI configuration or by environment variables (INFLUX_HOST, INFLUX_ORG, and INFLUX_TOKEN). If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags(以下示例假定您的 InfluxDB hostorganizationtoken活动的 influx CLI 配置或环境变量 (INFLUX_HOSTINFLUX_ORGINFLUX_TOKEN) 提供。 如果您没有设置 CLI 配置或设置环境变量,请在每个命令中包含以下标志的这些必需凭据)

  • --host: InfluxDB host--host: InfluxDB 主机
  • -o, --org or --org-id: InfluxDB organization name or ID(-o, --org--org-id:InfluxDB 组织名称或 ID)
  • -t, --token: InfluxDB API token(-t, --token:InfluxDB API 令牌)
Back up all data to a directory(将所有数据备份到目录)
influx backup /path/to/backup/dir/
  • Copy
  • Fill window
Back up all data to the current working directory(将所有数据备份到当前工作目录)
influx backup ./
  • Copy
  • Fill window
Back up a specific bucket to a directory(将特定存储桶备份到目录)
influx backup --bucket example-bucket /path/to/backup/dir/
  • Copy
  • Fill window

Was this page helpful?(此页内容是否对您有帮助?)

Thank you for your feedback!(感谢您的反馈!)


The future of Flux(Flux 的未来)

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.(Flux 将进入维护模式。您可以继续像现在一样使用它,而无需对代码进行任何更改。)

Read more(阅读更多)

InfluxDB 3 Open Source Now in Public Alpha(InfluxDB 3 开源版现已公开 Alpha 测试)

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing.(InfluxDB 3 开源版现已可用于 alpha 测试,并根据 MIT 或 Apache 2 许可获得许可。)

We are releasing two products as part of the alpha.(我们将发布两个产品作为 alpha 的一部分。)

InfluxDB 3 Core, is our new open source product. It is a recent-data engine for time series and event data. InfluxDB 3 Enterprise is a commercial version that builds on Core’s foundation, adding historical query capability, read replicas, high availability, scalability, and fine-grained security.(InfluxDB 3 Core 是我们新的开源产品。 它是时间序列和事件数据的最新数据引擎。 InfluxDB 3 Enterprise 是一个商业版本,它建立在 Core 的基础上,增加了历史查询功能、读取副本、高可用性、可扩展性和细粒度的安全性。)

For more information on how to get started, check out(有关如何开始使用的更多信息,请查看)