Skip to content

Commit

Permalink
Remove dead settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Sep 24, 2024
1 parent bac7087 commit 6689df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 2 additions & 3 deletions docs/topics/development/data_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down
8 changes: 1 addition & 7 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down

0 comments on commit 6689df2

Please sign in to comment.