https://github.com/udhos/ebsnap
https://github.com/udhos/ebsnap
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/udhos/ebsnap
- Owner: udhos
- License: mit
- Created: 2018-07-18T18:25:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T20:18:25.000Z (over 7 years ago)
- Last Synced: 2025-08-15T11:50:48.156Z (5 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ebsnap
## Usage
Run the script to get list of env vars available for customization:
$ ./ebsnap.sh
./ebsnap.sh: refusing KEEP=[] lower than 2
./ebsnap.sh: FILTERS=[] filters=[Name=tag:group,Values=ccc] -- very dangerous to run without filter
./ebsnap.sh: NO_DRY=[] dry=[--dry-run] set env var NO_DRY to disable dry run
./ebsnap.sh: FORCE_INSTANCE=[] set this env var to affect only specific instance
./ebsnap.sh: FORCE_VOLUME=[] set this env var to affect only specific volume
./ebsnap.sh: NO_DIE=[] set this env var to keep script running after errors -- helpful to fully test dry run
./ebsnap.sh: NO_WAIT=[] set this env var to skip waiting for stopped instances -- helpful to fully test dry run
./ebsnap.sh: KEEP=[] keep=[2] keep at most keep=2 snapshots per volume. Delete older snapshots.
## Example
Full test in dry mode:
$ NO_DIE=1 NO_WAIT=1 ./ebsnap.sh