{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/304","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/304/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/304/events","html_url":"https://github.com/sameersbn/docker-gitlab/pull/304","id":71892174,"number":304,"title":"add AWS_BACKUPS to configure automatic backups to S3","user":{"login":"colinbrownec","id":2192997,"avatar_url":"https://avatars.githubusercontent.com/u/2192997?v=3","gravatar_id":"","url":"https://api.github.com/users/colinbrownec","html_url":"https://github.com/colinbrownec","followers_url":"https://api.github.com/users/colinbrownec/followers","following_url":"https://api.github.com/users/colinbrownec/following{/other_user}","gists_url":"https://api.github.com/users/colinbrownec/gists{/gist_id}","starred_url":"https://api.github.com/users/colinbrownec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinbrownec/subscriptions","organizations_url":"https://api.github.com/users/colinbrownec/orgs","repos_url":"https://api.github.com/users/colinbrownec/repos","events_url":"https://api.github.com/users/colinbrownec/events{/privacy}","received_events_url":"https://api.github.com/users/colinbrownec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-29T14:32:21Z","updated_at":"2015-04-29T18:20:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/pulls/304","html_url":"https://github.com/sameersbn/docker-gitlab/pull/304","diff_url":"https://github.com/sameersbn/docker-gitlab/pull/304.diff","patch_url":"https://github.com/sameersbn/docker-gitlab/pull/304.patch"},"body":"Enables use of GitLab integration with Fog to automatically push backups to an S3 bucket.\r\n\r\nI noticed there is another [open pull request](https://github.com/sameersbn/docker-gitlab/pull/268) doing this same feature, this setup is much simpler.\r\n\r\nI just realized now that Fog supports multiple providers, but I'm not sure how to support complete configuration through environment variables without writing a lot more code.\r\n\r\nI've tested this on a production git server and it works with both `app:rake` backups as well as automatic backups. It also disables this behavior when `AWS_BACKUPS=false`"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/97530506","html_url":"https://github.com/sameersbn/docker-gitlab/pull/304#issuecomment-97530506","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/304","id":97530506,"user":{"login":"sameersbn","id":410147,"avatar_url":"https://avatars.githubusercontent.com/u/410147?v=3","gravatar_id":"","url":"https://api.github.com/users/sameersbn","html_url":"https://github.com/sameersbn","followers_url":"https://api.github.com/users/sameersbn/followers","following_url":"https://api.github.com/users/sameersbn/following{/other_user}","gists_url":"https://api.github.com/users/sameersbn/gists{/gist_id}","starred_url":"https://api.github.com/users/sameersbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameersbn/subscriptions","organizations_url":"https://api.github.com/users/sameersbn/orgs","repos_url":"https://api.github.com/users/sameersbn/repos","events_url":"https://api.github.com/users/sameersbn/events{/privacy}","received_events_url":"https://api.github.com/users/sameersbn/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T18:20:05Z","updated_at":"2015-04-29T18:20:05Z","body":"@colinbrownec I think you can keep the `AWS_BACKUPS` option. But if it is not specified, then it should be enabled automatically if all the four parameters are defined. If it has been enabled by the user, but if any of the four parameters are not defined, the we display a message that says something like \"Cannot enable AWS backups. Invalid configuration.\", disable AWS backups and continue without exiting."}}