mattyr / flynn-pgbackups

Automatic backups for postgres databases in Flynn
8 stars 1 forks source link

Plug to other static hosting #4

Open augnustin opened 5 years ago

augnustin commented 5 years ago

Hey,

Flynn user here, but I can't use S3 in the scope of my project. Not a go dev neither.

Is there a way to make copy to static hosting step easily plugged to another service? Like a plugin syntax, eventually more language agnostic?

Cheers

mattyr commented 5 years ago

The interface used to connect to S3 is pretty simple, and it's set up so that you can implement it other ways. Check here:

https://github.com/mattyr/flynn-pgbackups/blob/6ac318b3a33694fa1c3faba9f4bc7418921ecdbc/store.go#L14-L19

A pull request implementing another storage mechanism would be great!