Skip to content

Instantly share code, notes, and snippets.

@jpbarto
Created October 30, 2020 10:12
Show Gist options
  • Save jpbarto/0b7cb3fd25a59309ac65d6f108400076 to your computer and use it in GitHub Desktop.
Save jpbarto/0b7cb3fd25a59309ac65d6f108400076 to your computer and use it in GitHub Desktop.
List the automated RDS backups available for PITR
#!/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