library ebs-snapshot-automation
Automatically create snapshots for your AWS EBS volumes
codebridge/ebs-snapshot-automation
Automatically create snapshots for your AWS EBS volumes
- Monday, May 23, 2016
- by Raz0rwire
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
EBS Snapshot Automation
Installation
composer require codebridge/ebs-snapshot-automation
Setup
copy .env.example to .env and edit with your own AWS credentials, (*1)
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 * * *., (*2)
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
dev-master
9999999-dev
Automatically create snapshots for your AWS EBS volumes
Sources
Download
MIT
The Requires
by
Kevin Hoogerwerf
v1.0
1.0.0.0
Automatically create snapshots for your AWS EBS volumes
Sources
Download
MIT
The Requires
by
Kevin Hoogerwerf