- #!/bin/sh
- export PGPASSWORD='NFQCgBA6YhNvgAqG6THw'
- backup_dir='financialdb'
- host='127.0.0.1'
- port='15432'
- username='postgres'
- dbname='financialdb'
- jobs='24'
- pg_restore -O -c -v -h "${host}" -p "${port}" -U "${username}" -d "${dbname}" -Fd -j "${jobs}" "${backup_dir}"
|