From 6689df2ee1fbabe9fa29d8c90b10506a4e03bdff Mon Sep 17 00:00:00 2001 From: Kevin Meinhardt Date: Tue, 24 Sep 2024 19:00:27 +0200 Subject: [PATCH] Remove dead settings --- docs/topics/development/data_management.md | 5 ++--- settings.py | 8 +------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/topics/development/data_management.md b/docs/topics/development/data_management.md index 0b8dfe68051..826cb091896 100644 --- a/docs/topics/development/data_management.md +++ b/docs/topics/development/data_management.md @@ -46,7 +46,7 @@ These commands rely internally on [django-dbbackup](https://django-dbbackup.read ``` This command creates a dump of the current MySQL database. The command accepts an optional `name` argument which will determine - the name of the directory created in the `DATA_BACKUP_DIRNAME` directory. By default it uses a timestamp to ensure uniqueness. + the name of the directory created in the backup directory. By default it uses a timestamp to ensure uniqueness. You can also specify the `--force` argument to overwrite an existing backup with the same name. @@ -57,8 +57,7 @@ These commands rely internally on [django-dbbackup](https://django-dbbackup.read ``` This command will load data from an existing backup directory, synchronize the storage directory and reindex elasticsearch. - The name is required and must match a directory in the `DATA_BACKUP_DIRNAME` directory. - + The name is required and must match a directory in the backup directory. ## Hard Reset Database diff --git a/settings.py b/settings.py index 21241f65370..e25c2738301 100644 --- a/settings.py +++ b/settings.py @@ -22,14 +22,8 @@ 'dbbackup', ) -# Settings for django-dbbackup -DATA_BACKUP_DIRNAME = path('backups') -DATA_BACKUP_INIT = '_init' -DATA_BACKUP_DB_FILENAME = 'db.sql' -DATA_BACKUP_STORAGE_FILENAME = 'storage.tar' - DBBACKUP_STORAGE = 'django.core.files.storage.FileSystemStorage' -DBBACKUP_STORAGE_OPTIONS = {'location': DATA_BACKUP_DIRNAME} + DBBACKUP_CONNECTOR_MAPPING = { 'olympia.core.db.mysql': 'dbbackup.db.mysql.MysqlDumpConnector', }