From df8ca3bbcde31e64671a7c50e51b36a22b905ad4 Mon Sep 17 00:00:00 2001 From: jem Date: Wed, 6 Jan 2021 14:06:54 +0100 Subject: [PATCH] remove -v from dump input --- infrastrucure/docker/image/resources/pg-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastrucure/docker/image/resources/pg-functions.sh b/infrastrucure/docker/image/resources/pg-functions.sh index aa22a8d..cdf93f1 100644 --- a/infrastrucure/docker/image/resources/pg-functions.sh +++ b/infrastrucure/docker/image/resources/pg-functions.sh @@ -28,7 +28,7 @@ function backup-roles() { pg_dumpall -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U${POSTGRES_USER} --no-password --roles-only | \ grep "${role_prefix}" | \ - restic -v -r ${RESTIC_REPOSITORY}/pg-role backup --stdin + restic -r ${RESTIC_REPOSITORY}/pg-role backup --stdin restic -v -r ${RESTIC_REPOSITORY}/pg-role forget --keep-last 1 --keep-within ${RESTIC_DAYS_TO_KEEP}d --prune } @@ -38,7 +38,7 @@ function backup-db-dump() { pg_dump -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} \ -U ${POSTGRES_USER} --no-password --serializable-deferrable | \ - restic -v -r ${RESTIC_REPOSITORY}/pg-database backup --stdin + restic -r ${RESTIC_REPOSITORY}/pg-database backup --stdin restic -v -r ${RESTIC_REPOSITORY}/pg-database forget --keep-last 1 --keep-within ${RESTIC_DAYS_TO_KEEP}d --prune }