-
Notifications
You must be signed in to change notification settings - Fork 61
DB backup #865
Comments
You can add my script to the yml file and it should work. The only modification required is that we need to It'll be beneficial to share it here but I'm posting from mobile. |
What do you mean by "my script"? Could you share a link? |
But @rndquu how can we test if we do not have schema and data? We can do a test with some mockup data maybe? Can you provide something? |
From our conversation a couple of weeks ago #!/bin/bash
CURRENT_TIMESTAMP=$(date +%s)
# pg_dump
docker \
run \
--rm \
-it \
-v \
~/Downloads:/backup \
postgres:15.1 \
pg_dump \
-h \
db.wfzpewmlyiozupulbuur.supabase.co \
-p \
5432 \
-d \
postgres \
-U \
postgres \
-F \
c \
-f \
/backup/"$CURRENT_TIMESTAMP".backup
# pg_restore
docker \
run \
--rm \
-it \
-v \
~/Downloads:/backup \
postgres:15.1 \
pg_restore \
--no-owner \
--no-acl \
-F \
c \
-f \
/backup/"$CURRENT_TIMESTAMP".sql \
/backup/"$CURRENT_TIMESTAMP".backup
# diff
# diff \
# ~/Downloads/"$BEFORE_TIMESTAMP".sql \
# ~/Downloads/"$CURRENT_TIMESTAMP".sql \
# > \
# ~/Downloads/difference.diff
|
Using docker container for a single |
You can test on your own supabase remote instance DB |
Thank you @rndquu for all the provided information 👍 |
@gitcoindev The time limit for this bounty is on Tue, 21 Nov 2023 09:45:21 UTC |
These linked pull requests are closed: #882 |
@gitcoindev - Releasing the bounty back to dev pool because the allocated duration already ended! |
@Keyrxng Could you self assign again? |
/start |
Skipping |
@rndquu unable to reassign atm mate |
@Keyrxng The time limit for this bounty is on Fri, 24 Nov 2023 03:17:47 UTC |
Closing this as completed because dumps are created fine https://github.com/ubiquity/ubiquibot-db-backups |
Permit generation skipped because bounty amount after penalty is 0 If you've enjoyed your experience in the DevPool, we'd appreciate your support. Follow Ubiquity on GitHub and star this repo. Your endorsement means the world to us and helps us grow!We are excited to announce that the DevPool and UbiquiBot are now available to partners! Our ideal collaborators are globally distributed crypto-native organizations, who actively work on open source on GitHub, and excel in research & development. If you can introduce us to the repository maintainers in these types of companies, we have a special bonus in store for you! |
Task Creator Rewardrndquu: [ CLAIM 25.8 WXDAI ] |
wtf? :)) |
@pavlovcik I guess we should send the reward manually |
Penalty system is not good in this implementation. Curious what issue was reopened that you were paid for. |
/query @Keyrxng |
Skipping |
I'll need to address this later then. Let me know what address you want me to send to @Keyrxng |
It can only have been when you reopened /ask I think I claimed the faucet permit earlier today without issue in generating it so this is very strange |
We should periodically backup the bot's prod DB in case something goes wrong.
What should be done:
The text was updated successfully, but these errors were encountered: