dlowhorn / purge-snapshots
Purge automatic AWS Lightsail Snapshots
1.0.0
2021-02-08 21:18 UTC
Requires
- php: >=7.1
- aws/aws-sdk-php: ^3.172
This package is auto-updated.
Last update: 2025-04-09 06:15:18 UTC
README
Usage
Copy vendor/dlowhorn/purge-snapshots/bin/purgeSnapshots.php to root of your project, then:
php purgeSnapshots.php [resource name] [aws region] [days to keep] [api version]
Example
Delete any automatic snapshot older than 5 days:
php purgeSnapshots.php my-lightsail-instance-name us-east-1 5 2016-11-28