Documentation

influxd-ctl backup

The influxd-ctl backup command backs up an InfluxDB Enterprise cluster’s metastore and shard data at that point in time and stores the copy in the specified directory.

To back up only the cluster metastore, use the -strategy only-meta flag. Backups are incremental by default, meaning they create a copy of the metastore and shard data that have changed since the previous incremental backup. If there are no existing incremental backups, the system automatically performs a complete backup.

Backup strategies

InfluxDB Enterprise supports the following backup strategies:

  • only-meta: Back up metastore data only, including users, roles, databases, continuous queries, and retention policies. This strategy does not back up shards.
  • full: Back up metastore and all shard data.
  • incremental: (Default) Back up metastore and shard data that has changed since the last incremental backup. If there are no existing incremental backups, the system automatically performs a full backup.

Usage

influxd-ctl backup [flags] <backup-dir>
  • Copy
  • Fill window

Arguments

  • backup-dir: Directory to store backup files in

Flags

FlagDescription
-dbDatabase to backup
-endEnd date for backup (RFC3339 timestamp)
-estimateEstimate the size of the requested backup
-fromData node TCP address to prefer when backing up
-fullPerform an full backup (deprecated in favour of -strategy full)
-rpRetention policy to backup
-shardShard ID to backup
-startStart date for backup (RFC3339 timestamp)
-strategyBackup strategy to use (only-meta, full, or incremental)

Examples

Perform an incremental backup

influxd-ctl backup /path/to/backup-dir
  • Copy
  • Fill window

Perform a full backup

influxd-ctl backup -full /path/to/backup-dir
  • Copy
  • Fill window

Estimate the size of a backup

influxd-ctl backup -estimate
  • Copy
  • Fill window

Backup data from a specific time range

influxd-ctl backup \
  -start 2023-01-01T00:00:00Z \
  -end 2023-06-01T00:00:00Z \
  /path/to/backup-dir
  • Copy
  • Fill window

Backup a specific shard

influxd-ctl backup -shard 00 /path/to/backup-dir
  • Copy
  • Fill window

Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: