Difference between revisions of "Influxdb v1"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#admin-users
 
https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#admin-users
  
https://docs.influxdata.com/influxdb/v1.8/administration/backup_and_restore/
+
 
  
 
auth-enabled = true # Set to true
 
auth-enabled = true # Set to true
 +
 +
 +
## Backup and Restore
 +
- https://docs.influxdata.com/influxdb/v1.8/administration/backup_and_restore/
 +
 +
```
 +
mkdir portable-bkp
 +
influxd backup -portable -host localhost:8088 portable-bkp
 +
influxd restore -portable -host localhost:8088 portable-bkp
 +
```
 +
 +
Notes
 +
-db: Database name (If no database name is specified, the command restores all databases)
 +
-newdb: New database name (Required when restoring a database that already exists)

Revision as of 02:12, 10 June 2022

https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/

https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#admin-users

auth-enabled = true # Set to true

Backup and Restore

mkdir portable-bkp
influxd backup -portable -host localhost:8088 portable-bkp
influxd restore -portable -host localhost:8088 portable-bkp

Notes -db: Database name (If no database name is specified, the command restores all databases) -newdb: New database name (Required when restoring a database that already exists)