From: Chris Sharp Date: Wed, 1 Nov 2017 13:34:59 +0000 (-0400) Subject: adding convenience script for dumping test DBs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=295eb955e36b932ce286d9f7115ffa691902ab64;p=contrib%2Fpines.git adding convenience script for dumping test DBs --- diff --git a/db/dump_db_for_test.sh b/db/dump_db_for_test.sh new file mode 100644 index 0000000..a133ffa --- /dev/null +++ b/db/dump_db_for_test.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +PGUSER=evergreen pg_dump -v -F c \ + --exclude-table-data=auditor.acq_invoice_item_history \ + --exclude-table-data=auditor.serial_unit_history \ + --exclude-table-data=auditor.asset_copy_history \ + --exclude-table-data=auditor.biblio_record_entry_history \ + --exclude-table-data=auditor.actor_usr_address_history \ + --exclude-table-data=auditor.asset_call_number_history \ + --exclude-table-data=auditor.actor_usr_history \ + --exclude-table-data=auditor.acq_invoice_history \ + --exclude-table-data=auditor.acq_invoice_entry_history \ + --exclude-table-data=auditor.actor_org_unit_history \ + --exclude-table-data=reporter.schedule \ + evergreen > pines-prod-no-auditor-`date +%F`.dmp