privileges are important

This commit is contained in:
jem 2020-12-12 18:19:10 +01:00
parent 1610215379
commit 8288ae0fbd

View file

@ -14,8 +14,7 @@ function main() {
# backup database dump
pg_dump -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} \
-U ${POSTGRES_USER_FILE} --no-password --serializable-deferrable \
--no-privileges | \
-U ${POSTGRES_USER_FILE} --no-password --serializable-deferrable | \
restic -r ${RESTIC_REPOSITORY}/db backup --stdin
# backup nextcloud filesystem