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