From 9654c4fbe2027cbe2fd0f7506f703147cbe4c350 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 16 Sep 2022 15:11:01 +0200 Subject: [PATCH] Fix typo in restore-db() --- infrastructure/docker/image/resources/pg-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/docker/image/resources/pg-functions.sh b/infrastructure/docker/image/resources/pg-functions.sh index 5725052..273ec18 100644 --- a/infrastructure/docker/image/resources/pg-functions.sh +++ b/infrastructure/docker/image/resources/pg-functions.sh @@ -113,12 +113,12 @@ function restore-db() { if [ -z ${CERTIFICATE_FILE} ]; then db-unlock-command - restic -r ${RESTIC_REPOSITORY}/pg_database dump latest stdin | \ + restic -r ${RESTIC_REPOSITORY}/pg-database dump latest stdin | \ psql -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \ --no-password else db-unlock-command --cacert ${CERTIFICATE_FILE} - restic -r ${RESTIC_REPOSITORY}/pg_database dump latest stdin --cacert ${CERTIFICATE_FILE} | \ + restic -r ${RESTIC_REPOSITORY}/pg-database dump latest stdin --cacert ${CERTIFICATE_FILE} | \ psql -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \ --no-password fi