mirror of
https://github.com/jlengrand/cellar.git
synced 2026-03-10 08:01:19 +00:00
Adds backup and restore scripts
This commit is contained in:
@@ -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
1
cellar-influxdb/backup.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST
|
||||||
1
cellar-influxdb/restore.sh
Executable file
1
cellar-influxdb/restore.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
influx restore $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN
|
||||||
Reference in New Issue
Block a user