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

From wikieduonline
Jump to navigation Jump to search
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:
 +
* [[pg_restore]] --jobs="${numcores}" --format=directory --dbname=cexplorer "${tmp_dir}/db/"
  
  

Revision as of 04:02, 3 May 2023

Advertising: