influxd restore command to restore backup data and metadata from InfluxDB.
You must stop InfluxDB before restoring data.
influxd restore command only restores data to InfluxDB OSS, not InfluxDB Cloud.
When restoring data from a backup file set, InfluxDB temporarily moves existing data and metadata while the restore process runs. Once the process completes, the temporary data is deleted. If the restore process fails, InfluxDB preserves the data in the temporary location. See Recover from a failed restore.
Restore data with the influxd CLI
- Stop the
influxd restorecommand and specify the path to the backup directory using the
# Syntax influxd restore --backup-path <path-to-backup-directory> # Example influxd restore --backup-path ~/backups/2020-01-20_12-00/
For more information about restore options and flags, see the
Customize the TSI rebuild process
By default, InfluxDB rebuilds the index and series file when restoring data.
When rebuilding the Time Series Index (TSI), it uses the
To customize the Time Series Index (TSI) rebuild process:
Disable rebuilding the index and series files when restoring data:
influxd restore --rebuild-index false
influxd inspect build-tsiwith any custom options.
influxd inspect build-tsi \ --max-log-file-size=1048576 \ --max-cache-size=1073741824
Manually rebuild the TSI index to adjust the performance of the TSI rebuild process.
Recover from a failed restore
If the restoration process fails, InfluxDB preserves existing data in a
directory in the target engine path
To recover from a failed restore:
- Copy the temporary files back into the
- Remove the
.tmpextensions from each of the copied files.
- Restart the
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 or submit feedback, the following resources are available:
- Post in the InfluxData Community.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.
For our InfluxDB Cloud customers, InfluxData Support is also available.