Fix backup/restore #14
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-restore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have been using Salami (some call it llm) to make automated tests to test backup and restore for co-op cloud recipes (more info on this coming soon), and have been finding some bugs in backup/restore that don't actually work and probably have not been tested
this recipe was one of them. before the fix, the restore was appearing to restore but was I believe a silent no-op. this PR has a fix for it (based on pg_backup.sh of other recipes, with one additional safeguard of killing any live connections to the database before doing the database recreate)
notes:
... probably we should switch to using https://github.com/discourse/discourse_docker published somewhere else... but will save that for another PR as this was a few other bits
Fix backup/restoreto WIP: Fix backup/restoreI realize this PR contains a few different things and might be hard to read.
If someone else is also wanting to collab on maintaining this recipe, then I can break it into parts. Or I can just merge it as its probably all stuff that should happen at some point.
WIP: Fix backup/restoreto Fix backup/restorecc recent committers if you want to weigh in @decentral1se @jeppebundsgaard @3wordchant
ran into an issue in the old bespoke upgrade script while deploying this change to an old deployment (with a different database install user). created a fix and explanation here: #15 and releasing a patch release shortly