privileges are important
This commit is contained in:
parent
1610215379
commit
8288ae0fbd
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ function main() {
|
||||||
|
|
||||||
# backup database dump
|
# backup database dump
|
||||||
pg_dump -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} \
|
pg_dump -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} \
|
||||||
-U ${POSTGRES_USER_FILE} --no-password --serializable-deferrable \
|
-U ${POSTGRES_USER_FILE} --no-password --serializable-deferrable | \
|
||||||
--no-privileges | \
|
|
||||||
restic -r ${RESTIC_REPOSITORY}/db backup --stdin
|
restic -r ${RESTIC_REPOSITORY}/db backup --stdin
|
||||||
|
|
||||||
# backup nextcloud filesystem
|
# backup nextcloud filesystem
|
||||||
|
|
Loading…
Reference in a new issue