Skip to content

Bash script to automate with cron in order to make snapshots of your AWS EC2 Volumes

License

Notifications You must be signed in to change notification settings

MickaelAlliel/aws_ec2_autobackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Automatic AWS EBS Volume Snapshot Creation & Clean-Up Script

Written by Mickael Alliel (https://www.mickaelalliel.com) Script Github repo: https://github.com/MickaelAlliel

PURPOSE: This Bash script can be used to take automatic snapshots of your Linux EC2 instance. Script process:

  • Determine volume id and region from arguments
  • Take a snapshot of the volume id
  • The script will then delete all associated snapshots taken by the script for this volume id that are older than 3 days

DISCLAIMER: This script deletes snapshots (though only the ones that it creates). Make sure that you understand how the script works. No responsibility accepted in event of accidental data loss.

About

Bash script to automate with cron in order to make snapshots of your AWS EC2 Volumes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages