Skip to content
Prev Previous commit
Next Next commit
Capture all commands necessary to restore the db from backup
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
  • Loading branch information
gerhard committed Apr 3, 2022
commit 1cb3c797db120f6763acfc3531bcdb16daedae05
6 changes: 5 additions & 1 deletion 2022.fly/main.cue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import (
// - put it in a script (workaround)
//
// - [ ] import PostgreSQL from last backup
// psql -h postgres-2022-03-12.internal -U postgres < ~/Downloads/prod-2021-04_changelog_2022-03-13T13.00.09Z.sql
// fly postgres connect postgres-2022-03-12
// drop database changelog with (force);
// create database changelog;
// ^d
// psql --host=postgres-2022-03-12.internal --username=postgres --dbname=changelog < ~/Downloads/prod-<TAB>
//
// - [ ] connect to PostgreSQL changelog instance
//
Expand Down