https://github.com/bryanlabs/aws-ebs-backups
https://github.com/bryanlabs/aws-ebs-backups
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bryanlabs/aws-ebs-backups
- Owner: bryanlabs
- License: gpl-3.0
- Created: 2019-03-30T23:01:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T21:09:10.000Z (over 3 years ago)
- Last Synced: 2025-10-06T03:30:15.883Z (10 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ebs-backups for EC2
# HOW IT WORKS
### Deploy the Cloudformation, and all EC2 instances will be backed up.
[](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=ebs-backups&templateURL=https://bryanlabs-public.s3.amazonaws.com/bryanlabs.net_files/blog/ebs-backups/ebs-backups.yml)
[View Source](https://github.com/bryanlabs/aws-ebs-backups/blob/master/ebs-backups.yml)
### Opting Out
The default behavior is to backup all instances. To exclude an instance from being backed up, add the following tag to the instance.
```shell
aws ec2 create-tags \
--resources i-1234567890abcdef0 --tags Key=Backup,Value=False
```
### Changing Default Retention
The default behavior is to retain backups for 14 days. To change the default behavior, update the CFT parameter with a new value.
To change the individual behavior of a single instance add the following tag.
```shell
aws ec2 create-tags \
--resources i-1234567890abcdef0 --tags Key=Retention,Value=3
```