Skip to content

Commit

Permalink
fix: dbrestore pg_restore w/ permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
fivehanz committed Nov 4, 2024
1 parent 1487c74 commit 054e5c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hanz/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@
"default_acl": "private",
}

DBBACKUP_CONNECTOR_MAPPING = {
'django.db.backends.postgresql': 'dbbackup.db.postgresql.PgDumpBinaryConnector',
}

DBBACKUP_CONNECTORS = {
'default': {
'dump_cmd': 'pg_dump --no-owner --no-privileges',
'restore_cmd': 'pg_restore --no-owner --no-privileges',
}
}

###
AWS_S3_ADDRESSING_STYLE = os.environ.get("S3_ADDRESSING_STYLE", "path")
# AWS_S3_SIGNATURE_VERSION = "s3v4"

Expand Down

0 comments on commit 054e5c3

Please sign in to comment.