restore-db.sh 252 B

12345678910
  1. #!/bin/sh
  2. export PGPASSWORD='NFQCgBA6YhNvgAqG6THw'
  3. backup_dir=$1
  4. host='127.0.0.1'
  5. port='15432'
  6. username='postgres'
  7. dbname='ts_acl'
  8. jobs='24'
  9. pg_restore -O -c -v -h "${host}" -p "${port}" -U "${username}" -d "${dbname}" -Fd -j "${jobs}" "${backup_dir}"