Restore data
Use the influx restore
command to restore backup data and metadata from InfluxDB OSS.
The influx 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 influx CLI
Use the influx restore
command and specify the path to the backup directory in the first argument.
# Syntax
influx restore <path-to-backup-directory>
# Example
influx restore ~/backups/2020-01-20_12-00/
For more information about restore options and flags, see the
influx restore
documentation.
Recover from a failed restore
If the restoration process fails, InfluxDB preserves existing data in a tmp
directory in the target engine path
(default is ~/.influxdbv2/engine
).
To recover from a failed restore:
- Copy the temporary files back into the
engine
directory. - Remove the
.tmp
extensions from each of the copied files. - Restart the
influxd
server.
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, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.