1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-07-14 22:44:07 +00:00

filter backups by database name

This commit is contained in:
Elliott Shugerman
2019-12-01 20:02:12 -07:00
parent de8f9b0df6
commit 0f1ad642dd
2 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ if [ $# -eq 1 ]; then
else
echo "Finding latest backup..."
key_suffix=$(
aws $aws_args s3 ls "${s3_uri_base}/" \
aws $aws_args s3 ls "${s3_uri_base}/${POSTGRES_DATABASE}" \
| sort \
| tail -n 1 \
| awk '{ print $4 }'