influxd-ctl restore command restores data backed up from an InfluxDB
influxd-ctl restore supports full, incremental, and metadata-only backups.
To restore from a full backup, include the
-full flag and provide the path to
the backup manifest (
To restore from an incremental or metadata backup, provide the path to
the directory that contains the backup files (
Destination database must be empty
The database data is restored to must be empty.
influxd-ctl restore will fail if the destination database contains data.
influxd-ctl restore [flags] <backup-location>
backup-location: Location of backup-related files. They type of backup you’re restoring from determines the type and location of backup files:
- Restore from a full backup: Provide the path to the backup manifest file
- Restore from an incremental backup: Provide the directory path of the backup
- Restore from a metadata-only backup: Provide the directory path of the backup
|Database to restore (if the backup contains more than one)
|Restore data from a full backup
|List the contents of the backup
|Restore only metadata from a backup Danger: see below
|Change database name when restoring (requires
|Change retention policy duration (shard expiry) when restoring (requires
-rp flag, use 0s for infinite)
|New replication factor to use during restore (limited by cluster size)
|Change retention policy name when restoring (requires
|Shard ID to restore into (if different from the shard ID in the backup)
|Retention policy to restore (if the backup contains more than one)
|Shard ID to restore
Only use the
-meta-only-overwrite-force flag to restore from backups of the
destination cluster. Metadata includes shard assignments to data nodes, so if
you use this flag with metadata from a different cluster, you will lose data.
See Back up and restore for instructions on using this flag.
Restore from a full backup
influxd-ctl restore -full /path/to/full-backup/20230101T00000Z.manifest
Restore from an incremental backup
In this example, the
restore command restores an incremental backup stored in the
influxd-ctl restore /path/to/incremental-backup/
Restore from a metadata backup
In this example, the
restore command restores an metadata backup stored
influxd-ctl restore /path/to/metadata-backup/
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.