Difference between revisions of "/scripts/postgresql-setup.sh"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/state-snapshot.md
 
https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/state-snapshot.md
 
  PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --restore-snapshot db-sync-snapshot-schema-9-block-5796064-x86_64 ledger-state/mainnet
 
  PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --restore-snapshot db-sync-snapshot-schema-9-block-5796064-x86_64 ledger-state/mainnet
 +
 +
 +
Restore:
 +
* <code>[[pg_restore]] --jobs="${numcores}" --format=directory --dbname=cexplorer "${tmp_dir}/db/"</code>
  
  

Latest revision as of 04:02, 3 May 2023

Advertising: