From 4f21e9e76a58c08d7cf9d9587ce3ae0ecc2e4d4f Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 09:57:27 +0300 Subject: [PATCH] backup name --- create_db.sh.template | 1 + 1 file changed, 1 insertion(+) diff --git a/create_db.sh.template b/create_db.sh.template index b16b835..3bf967f 100644 --- a/create_db.sh.template +++ b/create_db.sh.template @@ -11,4 +11,5 @@ su - postgres -c "PGPASSWORD=\"DESTINATION_POSTGRES_PASSWORD\" psql -U postgres set "PGPASSWORD=\"DESTINATION_POSTGRES_PASSWORD\"" +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