Adds backup and restore scripts

This commit is contained in:
Julien Lengrand-Lambert
2020-11-18 11:24:21 +01:00
parent 8118d48463
commit 1046687758
3 changed files with 17 additions and 7 deletions

View File

@@ -1,22 +1,30 @@
Run influxdb locally # Run influxdb locally
```bash ```bash
$ docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:2.0.0-rc $ docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:v2.0.1
or or
$ docker start influxdb $ docker start influxdb
``` ```
cellar / robottle
for the CLI for the CLI
```bash ```bash
$ docker exec -it influxdb /bin/bash $ docker exec -it influxdb /bin/bash
``` ```
https://app-f68769bb-2fc0-4537-aae3-e3441ce75c81.cleverapps.io # Currently running 'PROD' on a clever cloud app.
```config ```config
CC_DOCKER_EXPOSED_HTTP_PORT 8086 CC_DOCKER_EXPOSED_HTTP_PORT 8086
CC_DOCKERFILE cellar-influxdb/Dockerfile CC_DOCKERFILE cellar-influxdb/Dockerfile
PORT 8080 PORT 8080
``` ```
to deploy a new version :
```
$ git remote -u clever master # you need to have the remote setup first
```
## Backup and Restore
WIP. See `backup.sh` and `restore.sh`

1
cellar-influxdb/backup.sh Executable file
View File

@@ -0,0 +1 @@
influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST

1
cellar-influxdb/restore.sh Executable file
View File

@@ -0,0 +1 @@
influx restore $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN