Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README with a brief description of each script
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
Shell scripts to ease some AWS administration tasks. | ||
|
||
* ec2-common.sh - Common vars and functions, meant to be sourced by other scripts | ||
* backup-volumes-into-snapshots.sh - Backup one or more volumes by making snapshots. Supports | ||
snapshot multi-tagging and description. Can operate in synchronous mode. Example of usage: | ||
|
||
./backup-volumes-into-snapshots.sh -s -v vol-bcf905d4 -d Hourly_backup -t "Content=Database" -t "backup=hourly" | ||
|
||
* find-vols-by-tag.sh - Find volumes by a given tag. Example of usage: | ||
|
||
./find-vols-by-tag.sh -t Content=Database | ||
|
||
* find-vols-attached-to-instance.sh - Search for volumes attached to a given instance. Example of usage: | ||
|
||
./find-vols-attached-to-instance.sh -i i-9293812 | ||
|
||
* clean-old-snapshots.sh - Clean old snapshots. Supports snapshot filtering (any criteria supported | ||
by ec2 api tools). It leaves untouched all snapshots not older than X days, and leave one per day | ||
for any snapshot not older than Y days (given that 0 < X < Y). Example of usage: | ||
|
||
./clean-old-snapshots.sh -f tag:backup=hourly -a 1 -d 7 | ||
|
||
* ec2-describe-instances-for-humans - Describe instances of one or more regions (or all of them if none specified) | ||
in a more human-friendly format. Example of usage: | ||
|
||
./ec2-describe-instances-for-humans.sh -r eu-west-1 -r us-east-1 |