#!/bin/bash # Trigger a manual snapshot of the production RDS instance. set -euo pipefail INSTANCE="nexus-prod-postgres" TIMESTAMP=$(date +%Y%m%d-%H%M%S) SNAP_ID="manual-$TIMESTAMP" echo "[backup] Creating snapshot: $SNAP_ID" aws rds create-db-snapshot \ --db-instance-identifier "$INSTANCE" \ --db-snapshot-identifier "$SNAP_ID" \ --region eu-central-1 echo "[backup] Snapshot requested. Use 'aws rds describe-db-snapshots' to check status."