You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm about to test and document the restore procedure for my project, since if you cannot restore, there is little value in a backup.
So in our case the typical restore would be after a data corruption, human mistake or after rolling out a bad version of our product, that mutates the DB, and the need to roll back to the previous version of our app, and also the previous version of DB from backup.
For these cases I want to restore on top of the existing DB for simplicity, then the entire restore process is only one command. So I found that I could add --clean --if-exists to POSTGRES_EXTRA_OPTS to get the DROP xxx IF EXISTS statements added in the backup file.
Have you considered adding it as a default, or at least mentioning various restore strategies in the README?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, thanks for a great product.
I'm about to test and document the restore procedure for my project, since if you cannot restore, there is little value in a backup.
So in our case the typical restore would be after a data corruption, human mistake or after rolling out a bad version of our product, that mutates the DB, and the need to roll back to the previous version of our app, and also the previous version of DB from backup.
For these cases I want to restore on top of the existing DB for simplicity, then the entire restore process is only one command. So I found that I could add
--clean --if-exists
toPOSTGRES_EXTRA_OPTS
to get theDROP xxx IF EXISTS
statements added in the backup file.Have you considered adding it as a default, or at least mentioning various restore strategies in the README?
Beta Was this translation helpful? Give feedback.
All reactions