django-sql-explorer icon indicating copy to clipboard operation
django-sql-explorer copied to clipboard

Multiple backends for snapshots

Open dimitri-justeau opened this issue 8 years ago • 3 comments

The snapshot feature of django-sql-explorer is a very nice and convenient one. However, I think it would be even more convenient to have more options than Amazon S3, which is a non-open source commercial solution, to store and retrieve these snapshots. For instance, I would be happy to be able to schedule snapshots on the local filesystem, or send then in a self hosted storage server. I don't think it is a difficult feature to implement, what do you think? I'll try to do it myself if I have the time for it!

dimitri-justeau avatar Aug 05 '16 04:08 dimitri-justeau

Definitely open to it and it's a great idea!

I don't think it would be super difficult, though I would call out that it would probably make the most sense to do it in a way that also allowed an alternative backend for the 'email' feature (see tasks._upload). Though I'm willing to look at and merge a pull request without that unified implementation.

chrisclark avatar Sep 25 '16 18:09 chrisclark

Sorry to come back late, and thanks for the feedback! A unified implementation would be very nice, I'll try to start working on it as soon as I have time to :)

dimitri-justeau avatar Nov 03 '16 04:11 dimitri-justeau

Sounds good. I actually adapted it to allow me to save each query on different buckets, also added a slug to create better names, and added the chance to send the files via FTP. It's really simple!

Tatoo988 avatar Oct 05 '17 14:10 Tatoo988