From 395aa36d2ba29be69fb3ab43ec5d12793f205b84 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 10:57:30 +0300 Subject: [PATCH] backup name --- create_db.sh.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/create_db.sh.template b/create_db.sh.template index 6c983ff..4741037 100644 --- a/create_db.sh.template +++ b/create_db.sh.template @@ -10,5 +10,6 @@ su - postgres -c "PGPASSWORD=\"DESTINATION_POSTGRES_PASSWORD\" psql -U postgres CONNECTION LIMIT = -1;\"" set "PGPASSWORD=DESTINATION_POSTGRES_PASSWORD" -su - postgres -c "export \"PGPASSWORD=DESTINATION_POSTGRES_PASSWORD\"" -su - postgres -c "pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP" \ No newline at end of file +#su - postgres -c "export \"PGPASSWORD=DESTINATION_POSTGRES_PASSWORD\"" +#su - postgres -c "pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP" +su - postgres -c "export PGPASSWORD='DESTINATION_POSTGRES_PASSWORD' && echo \$PGPASSWORD && pg_restore -j 2 -d DESTINATION_DB_NAME /var/backups/DB_BACKUP"