codebridge / ebs-snapshot-automation
Automatically create snapshots for your AWS EBS volumes
v1.0
2016-05-15 19:10 UTC
Requires
- aws/aws-sdk-php: ^3.18
- illuminate/console: ^5.2
- mtdowling/cron-expression: ^1.1
- symfony/console: ^3.0
- vlucas/phpdotenv: ^2.2
This package is not auto-updated.
Last update: 2025-01-16 02:11:47 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