From 4e1cc79fb437479f29a69eba8d7d144c59381d55 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 5 Feb 2018 23:30:24 -0500 Subject: [PATCH] rename and exclude data component --- deploy/dump.cmd | 1 + deploy/{rebuild_pg.cmd => setup.cmd} | 3 +-- deploy/ubm_backup.cmd | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 deploy/dump.cmd rename deploy/{rebuild_pg.cmd => setup.cmd} (59%) delete mode 100644 deploy/ubm_backup.cmd diff --git a/deploy/dump.cmd b/deploy/dump.cmd new file mode 100644 index 0000000..4361011 --- /dev/null +++ b/deploy/dump.cmd @@ -0,0 +1 @@ +"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\fleet\Documents\tps_etl\ubm_schema.sql" diff --git a/deploy/rebuild_pg.cmd b/deploy/setup.cmd similarity index 59% rename from deploy/rebuild_pg.cmd rename to deploy/setup.cmd index 1dd943e..5075a59 100644 --- a/deploy/rebuild_pg.cmd +++ b/deploy/setup.cmd @@ -1,4 +1,3 @@ "C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d postgres -U postgres -c "DROP DATABASE ubm" "C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d postgres -U postgres -c "CREATE DATABASE ubm" -"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\fleet\documents\tps_etl\ubm_schema.sql" -"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\fleet\documents\tps_etl\ubm_data.sql" +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\fleet\documents\tps_etl\ubm_schema.sql" \ No newline at end of file diff --git a/deploy/ubm_backup.cmd b/deploy/ubm_backup.cmd deleted file mode 100644 index e8e9242..0000000 --- a/deploy/ubm_backup.cmd +++ /dev/null @@ -1,2 +0,0 @@ -"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\fleet\Documents\tps_etl\ubm_schema.sql" -"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\fleet\Documents\tps_etl\ubm_data.sql"