Skip to content
Snippets Groups Projects
Commit 5d984785 authored by Radoslav Bodó's avatar Radoslav Bodó
Browse files

scripts: restore postgresql usage docs

parent afb7571a
No related branches found
No related tags found
No related merge requests found
Pipeline #8111 passed
#!/bin/bash
#
# Restores all databases (might throw errros, see pg docs).
# Might require to regrant privileges or ownership of created objects.
#
# ```
# \c database
# GRANT ALL PRIVILEGES ON SCHEMA public TO y;
# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO y;
# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO y;
# ```
`
set -ex
umask 077
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment