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