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

Multiple backup storage backends #235

Open
bethnull opened this issue Jan 23, 2017 · 6 comments · May be fixed by #357
Open

Multiple backup storage backends #235

bethnull opened this issue Jan 23, 2017 · 6 comments · May be fixed by #357
Assignees

Comments

@bethnull
Copy link

It would be nice to have the ability of using multiple backup storage backends so the backups will be stored in multiples places.

For instance, django.core.files.storage.FileSystemStorage for storing locally and storages.backends.s3boto.S3BotoStorage at the same time to store remotely in a S3 bucket.

By the way, django-dbbackup rocks! ;)

BR, Pepe.

@ZuluPro
Copy link
Contributor

ZuluPro commented Jan 23, 2017

Hello @bethnull
Thanks for the suggestion. We are already think about something like that in #61:
But we didn't think about a simple multi-storage mode.

I will we included soon I hope, but just one question:
How do you think it will deal with files ? Its reference will be only the first storage ?

@erasmodanarni
Copy link

It would be a great addition to the functionalities of the package!

@racitup
Copy link

racitup commented Oct 16, 2017

This would be great.
I was thinking you could just add a layer to the backend configuration a lot like the django database backend configuration. 'default' would be the default but people could add others that are selectable from a command option. For example 'local', 's3' and 'dropbox'.
At the moment I have solved this by loading different settings files. Useful for restoring a media backup for initial deployment locally and offside db backups in normal operation.

@ZuluPro
Copy link
Contributor

ZuluPro commented Oct 16, 2017

@racitup
Yes I was thinking exactly about the same thing ;)
I just don't have the time, maybe you could propose a PR ?

@racitup
Copy link

racitup commented Oct 16, 2017

I wish I could but I don't have the time either 😦

@mjlabe
Copy link

mjlabe commented Sep 26, 2020

If I find some time (probably not soon), I would like to take a look.

One feature I would like is a flag to pick the storage, so daily backups could be local, but weekly backups would be local and S3. Or implementing as @ZuluPro suggested in #61.

@jonathan-s jonathan-s linked a pull request Oct 2, 2020 that will close this issue
mjlabe added a commit to mjlabe/django-dbbackup that referenced this issue Dec 26, 2020


# Conflicts:
#	dbbackup/management/commands/dbbackup.py
mjlabe added a commit to mjlabe/django-dbbackup that referenced this issue Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants