influxdb/man/influxd-restore.txt

74 lines
2.6 KiB
Plaintext
Raw Normal View History

2016-07-15 21:43:05 +00:00
influxd-restore(1)
==================
NAME
----
influxd-restore - Uses backups from the PATH to restore the metastore, databases, retention policies, or specific
shards. Default mode requires the instance to be stopped before running, and will wipe all databases from the
system (e.g., for disaster recovery). The improved online and portable modes require the instance to be running,
and the database name used must not already exist.
2016-07-15 21:43:05 +00:00
SYNOPSIS
--------
'influxd restore' [-portable] [flags] PATH
2016-07-15 21:43:05 +00:00
DESCRIPTION
-----------
Uses backups from the PATH to restore the metastore, databases, retention policies, or specific shards. The InfluxDB process must not be running during a restore.
OPTIONS
-------
The default mode consumes files in an OSS only file format. PATH is a directory containing the backup data
2016-07-15 21:43:05 +00:00
-metadir <path>::
Optional. If set the metastore will be recovered to the given path.
2016-07-15 21:43:05 +00:00
-datadir <path>::
Optional. If set the restore process will recover the specified
destinationDatabase, retention policy or shard to the given directory.
2016-07-15 21:43:05 +00:00
-database <name>::
Optional. Required if no metadir given. Will restore a single database's data.
2016-07-15 21:43:05 +00:00
-retention <name>::
Optional. If given, -database is required. Will restore the retention policy's
data.
-shard <id>::
Optional. If given, -database and -retention are required. Will restore the shard's
data.
-online::
Optional. If given, the restore will be done using the new process, detailed below. All other arguments
above should be omitted.
The -portable restore mode consumes files in an improved format that includes a file manifest.
Options:
-host <host:port>::
The host to connect to and perform a snapshot of. Defaults to '127.0.0.1:8088'.
-db <name>::
Identifies the database from the backup that will be restored.
-newdb <name>::
The name of the database into which the archived data will be imported on the target system.
If not given, then the value of -db is used. The new database name must be unique to the target system.
-rp <name>::
Identifies the retention policy from the backup that will be restored. Requires that -db is set.
-newrp <name>::
The name of the retention policy that will be created on the target system. Requires that -rp is set.
If not given, the value of -rp is used.
2016-07-15 21:43:05 +00:00
-shard <id>::
Optional. If given, -db and -rp are required. Will restore the single shard's data.
2016-07-15 21:43:05 +00:00
SEE ALSO
--------
*influxd-backup*(1)
include::footer.txt[]