Public Repository

Last pushed: 20 days ago
Short Description
Creates volume snapshots for all volumes attached to instances, and prune old snapshots.
Full Description

Roclops | Autosnap

roclops/autosnap

Creates volume snapshots for all volumes attached to instances, and prune snapshots older than a certain number of days.

Running

docker run -d \
    --name autosnap \
    -e CLOUD_PLATFORM=<aws | gcp - Default: aws> \
    -e BACKUPS_CRON_SCHEDULE=<Cron schedule for backups. Default: '10 18 * * *'> \
    -v /home/user/.aws:/root/.aws \      # for credential files
    -e RETENTION_DAYS=<Number of days. Default: 7> \
    roclops/autosnap:latest

Usage

Run the container, it will do backups according to the cron schedule.

Building

Use the standard Roclops build process.

  • Set VERSION file to the new version.
  • Run "sh build.sh"

This will create a new build image and push to the Roclops Dockerhub repo. Running the build.sh creates/pushes the following tags:

  • <VERSION>.<TIMESTAMP>
  • <VERSION>
  • latest

For example, if the VERSION file contains 1.2.3, then the following tags would be produced and pushed to the Dockerhub repo:

  • 1.2.3.20170124103302
  • 1.2.3
  • latest
Docker Pull Command
Owner
roclops