From 10466877580d5c0ffba96e2aa75bcb381fe6b051 Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Wed, 18 Nov 2020 11:24:21 +0100 Subject: [PATCH] Adds backup and restore scripts --- cellar-influxdb/README.md | 22 +++++++++++++++------- cellar-influxdb/backup.sh | 1 + cellar-influxdb/restore.sh | 1 + 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100755 cellar-influxdb/backup.sh create mode 100755 cellar-influxdb/restore.sh diff --git a/cellar-influxdb/README.md b/cellar-influxdb/README.md index fd660e6..764486b 100644 --- a/cellar-influxdb/README.md +++ b/cellar-influxdb/README.md @@ -1,22 +1,30 @@ -Run influxdb locally +# Run influxdb locally ```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 $ docker start influxdb ``` -cellar / robottle - for the CLI ```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 CC_DOCKER_EXPOSED_HTTP_PORT 8086 CC_DOCKERFILE cellar-influxdb/Dockerfile PORT 8080 -``` \ No newline at end of file +``` + +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` \ No newline at end of file diff --git a/cellar-influxdb/backup.sh b/cellar-influxdb/backup.sh new file mode 100755 index 0000000..f308d37 --- /dev/null +++ b/cellar-influxdb/backup.sh @@ -0,0 +1 @@ +influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST \ No newline at end of file diff --git a/cellar-influxdb/restore.sh b/cellar-influxdb/restore.sh new file mode 100755 index 0000000..3a9bfc1 --- /dev/null +++ b/cellar-influxdb/restore.sh @@ -0,0 +1 @@ +influx restore $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN \ No newline at end of file