Public Repository

Last pushed: 3 months ago
Short Description
Backup and restore InfluxDB databases from S3
Full Description

influxdb-to-s3

This image is same as jacobtomlinson/influxdb-to-s3 but it adds the tag to the copied timestamped object with key=flag value=1

For backup with default cron with every 1 AM:

docker run -e DATABASE=<db-name> -e DATABASE_HOST=<host> -e S3_BUCKET=<s3 bucket> -e AWS_ACCESS_KEY_ID=<aws access key> -e AWS_SECRET_ACCESS_KEY=<aws secret access key> -e AWS_DEFAULT_REGION=us-west-2 vinayk10/influxdb-to-s3:latest

For backup with provided cron exprssion:

docker run -e DATABASE=<db-name> -e DATABASE_HOST=<host> -e S3_BUCKET=<s3 bucket> -e AWS_ACCESS_KEY_ID=<aws access key> -e AWS_SECRET_ACCESS_KEY=<aws secret access key> -e AWS_DEFAULT_REGION=us-west-2 vinayk10/influxdb-to-s3:latest cron "\* \* \* \* \*"

For backup:

docker run -e DATABASE=<db-name> -e DATABASE_HOST=<host> -e S3_BUCKET=<s3 bucket> -e AWS_ACCESS_KEY_ID=<aws access key> -e AWS_SECRET_ACCESS_KEY=<aws secret access key> -e AWS_DEFAULT_REGION=us-west-2 vinayk10/influxdb-to-s3:latest backup

For restore:

docker run -e DATABASE=<db-name> -e DATABASE_HOST=<host> -e S3_BUCKET=<s3 bucket> -e AWS_ACCESS_KEY_ID=<aws access key> -e AWS_SECRET_ACCESS_KEY=<aws secret access key> -e AWS_DEFAULT_REGION=us-west-2 vinayk10/influxdb-to-s3:latest restore

Before backup you must stop your influxdb server.

Docker Pull Command
Owner
vinayk10

Comments (0)