root(major): fix dbbackup not working with prometheus
This commit is contained in:
parent
49a347b32f
commit
be642bc874
|
@ -248,7 +248,11 @@ CELERY_RESULT_BACKEND = (f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redi
|
||||||
if CONFIG.y('postgresql.backup'):
|
if CONFIG.y('postgresql.backup'):
|
||||||
INSTALLED_APPS += ['dbbackup']
|
INSTALLED_APPS += ['dbbackup']
|
||||||
DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
|
DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
|
||||||
|
DBBACKUP_CONNECTORS = {
|
||||||
|
'default': {
|
||||||
|
'CONNECTOR': 'dbbackup.db.postgresql.PgDumpConnector'
|
||||||
|
}
|
||||||
|
}
|
||||||
AWS_ACCESS_KEY_ID = CONFIG.y('postgresql.backup.access_key')
|
AWS_ACCESS_KEY_ID = CONFIG.y('postgresql.backup.access_key')
|
||||||
AWS_SECRET_ACCESS_KEY = CONFIG.y('postgresql.backup.secret_key')
|
AWS_SECRET_ACCESS_KEY = CONFIG.y('postgresql.backup.secret_key')
|
||||||
AWS_STORAGE_BUCKET_NAME = CONFIG.y('postgresql.backup.bucket')
|
AWS_STORAGE_BUCKET_NAME = CONFIG.y('postgresql.backup.bucket')
|
||||||
|
|
Reference in New Issue