codebridge/ebs-snapshot-automation

Automatically create snapshots for your AWS EBS volumes

v1.0 2016-05-15 19:10 UTC

This package is not auto-updated.

Last update: 2024-04-24 22:19:34 UTC


README

Installation

composer require codebridge/ebs-snapshot-automation

Setup

copy .env.example to .env and edit with your own AWS credentials

Login to the AWS console and tag the volumes you want to snapshot with the proper tags. You can tag a volume for scheduling by tagging it with "Key" "schedule" and a "Value" which is a valid CRON expression, like 0 23 * * *.

Usage

php ebs-php volumes:list (see all your volumes)
php ebs-php volumes:list --cache (save your volumes locally for snapshotting)
php ebs-php volumes:list --show-cached (show all volumes in the local cache)
php ebs-php scheduler:run (check if there are any commands that need to be ran right now and execute them)

CRON jobs

Check for volumes to snapshot every minute
* * * * * php /path/to/ebs-php volumes:snapshot >/dev/null 2>&1