Created
October 30, 2020 10:12
-
-
Save jpbarto/0b7cb3fd25a59309ac65d6f108400076 to your computer and use it in GitHub Desktop.
List the automated RDS backups available for PITR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
AWS_REGION=eu-west-1 | |
aws rds describe-db-instance-automated-backups --region $AWS_REGION --query 'DBInstanceAutomatedBackups[*].{DatabaseID:DBInstanceIdentifier,Earliest:RestoreWindow.EarliestTime,Latest:RestoreWindow.LatestTime}' --output table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment