django-dbbackup icon indicating copy to clipboard operation
django-dbbackup copied to clipboard

Multiple backup storage backends

Open bethnull opened this issue 8 years ago • 6 comments

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.

bethnull avatar Jan 23 '17 13:01 bethnull

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 ?

ZuluPro avatar Jan 23 '17 16:01 ZuluPro

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

erasmodanarni avatar Feb 17 '17 15:02 erasmodanarni

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.

racitup avatar Oct 16 '17 17:10 racitup

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

ZuluPro avatar Oct 16 '17 17:10 ZuluPro

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

racitup avatar Oct 16 '17 17:10 racitup

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.

mjlabe avatar Sep 26 '20 12:09 mjlabe