Published on: November 27, 2019 by Shafeer P
AWS LightSail provides cheap VPS hosting compared to EC2, with a simple management interface.
LightSail allows us to create entire disk snapshots for reliability and portability. If you have a number of LightSail VPSs, managing the snapshots is a kinda headache for sure. So, we have written a shell script with the help of AWS CLI API to create and delete snapshots according to user’s preference, automatically.
GetRegions GetInstance GetInstances GetDiskSnapshot GetDiskSnapshots GetInstanceSnapshot GetInstanceSnapshots GetDisk CreateDiskSnapshot CreateInstanceSnapshot DeleteInstanceSnapshot
If you are unsure, create a user with LightSail full access. Note down the ACCESS_KEY and SECRET_KEY which we require in the next steps.
|backup.enable||true||Boolean||NULL||Case-sensitive. Any value other than true will disable automatic backups.
If disabled, existing backups won’t be removed automatically.
Maximum number of backups kept which created with name suffix snapof-
The value 0 will remove all backups.
Category : AWS