Skip to content

Commit

Permalink
Add dbbackup for database backups
Browse files Browse the repository at this point in the history
  • Loading branch information
lionleaf committed Aug 18, 2016
1 parent f3e1376 commit f8292e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ dwitter/static/CACHE/*
.gitignore
.*.sw*
venv/*
static/*
backups/*
*.iml
backup*.json
4 changes: 4 additions & 0 deletions dwitter/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@
'subdomains',
'anymail',
'compressor',
'dbbackup',
]

DBBACKUP_STORAGE = 'dbbackup.storage.filesystem_storage'
DBBACKUP_STORAGE_OPTIONS = {'location': 'backups'}

REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',),
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ djangorestframework==3.3.3
django-anymail==0.3.1
django-filter==0.13
django-compressor==2.1
django-dbbackup==2.5.0
flake8

0 comments on commit f8292e5

Please sign in to comment.