1.0.1
Backup manager instance.
(Object)
Manager object configuration.
Name | Description |
---|---|
config.db string
|
The name of the database |
config.username string?
|
InfluxDB user username |
config.password string?
|
InfluxDB user password |
config.host string
(default localhost )
|
Host url where influxdb is running. |
config.port number
(default 8086 )
|
InfluxDB port. |
config.tmp_folder string
(default .tmp )
|
Temporary folder path. |
config.suffix string
(default _bak )
|
Backup database suffix. |
config.retation string
(default autogen )
|
InfluxDB retation policy to backup. |
config.port number
(default 8088 )
|
InfluxDB backup port. |
Inits the backup manager, checks influxDB version and creates the temporary files folder (if doesn't exists).
Start a restore. Loads a backup into a backup database, once finished deletes the restore directory.
(string)
The directory path of the backup zip file.
(string)
Name of backup the zip file.
Promise<Boolean>
:
A promise object that resolves once the influxd
restore command has load all datas in the backup database.
Creates a queue for influxd commands.
(string)
The cwd path of influxd command (the directory where the command will be executed).
(Array)
Array of args to pass to the influxd command.
Promise<boolean>
:
a promise object that resolves once the influxd command has finished.
Spawn an influxd process and calls resolve once ended.