Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mediabackup not working with S3 storages #498

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dbbackup/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.2+fixes
Archmonger marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions dbbackup/management/commands/mediabackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import tarfile

from django.core.files.storage import get_storage_class
from django.core.files.storage import storages
from django.core.management.base import CommandError

from ... import utils
Expand Down Expand Up @@ -69,7 +69,7 @@ def handle(self, **options):
self.filename = options.get("output_filename")
self.path = options.get("output_path")
try:
self.media_storage = get_storage_class()()
self.media_storage = storages['default']
Archmonger marked this conversation as resolved.
Show resolved Hide resolved
self.storage = get_storage()
self.backup_mediafiles()
if options.get("clean"):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
django>=2.2
django>=4.2.7
pytz