No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Dockerfile 100%
Find a file
Chris Pressland fdf48ffe80
Some checks failed
ci / build (push) Failing after 1m4s
Add missing --
2023-08-10 13:18:56 +01:00
.github/workflows Initial commit 2023-08-07 18:28:22 +01:00
atlas.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
Dockerfile Add missing -- 2023-08-10 13:18:56 +01:00
eos.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
europa.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
hades.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
harmonia.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
hermes.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
midas.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
pontus.psql.zst Initial commit 2023-08-07 18:28:22 +01:00
README.md Initial commit 2023-08-07 18:28:22 +01:00

DB Bootstrap

Simple project for use with the AIT Cluster, forcefully restores databases to a fresh postgres server

Dumped with:

$ for i in atlas eos europa hades hermes harmonia midas pontus
      pg_dump -C -c --if-exists --no-owner -d $i -h 127.0.0.1 -U goat -W > $i.psql
  end

Args:

  • -C - Create, creates the database
  • -c - Drop, the database before creating
  • --if-exists - Add "if exists" into dumped SQL when truncating deleting, less client errors
  • --no-owner - Doesn't dump database ownership info, less client errors
  • -d Database Name
  • -h Database Host
  • -U Database User
  • -W Force prompt for Database Password

Compressed with:

$ for i in *.psql
      zstd --rm $i
  end