content/enterprise_influxdb/v1/tools/influxd-ctl/backup.md
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.
InfluxDB Enterprise supports the following backup strategies:
influxd-ctl backup [flags] <backup-dir>
| Flag | Description |
|---|---|
-db | Database to backup |
-end | End date for backup (RFC3339 timestamp) |
-estimate | Estimate the size of the requested backup |
-from | Data node TCP address to prefer when backing up |
-full | Perform an full backup (deprecated in favour of -strategy full) |
-rp | Retention policy to backup |
-shard | Shard ID to backup |
-start | Start date for backup (RFC3339 timestamp) |
-strategy | Backup strategy to use (only-meta, full, or incremental) |
{{% caption %}}
Also see influxd-ctl global flags.
{{% /caption %}}
influxd-ctl backup /path/to/backup-dir
influxd-ctl backup -strategy full /path/to/backup-dir
influxd-ctl backup -estimate
influxd-ctl backup \
-start 2023-01-01T00:00:00Z \
-end 2023-06-01T00:00:00Z \
/path/to/backup-dir
influxd-ctl backup -shard 00 /path/to/backup-dir