payload: {"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/coopdevs/backups-role/pulls/5","id":260879057,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYwODc5MDU3","html_url":"https://github.com/coopdevs/backups-role/pull/5","diff_url":"https://github.com/coopdevs/backups-role/pull/5.diff","patch_url":"https://github.com/coopdevs/backups-role/pull/5.patch","issue_url":"https://api.github.com/repos/coopdevs/backups-role/issues/5","number":5,"state":"closed","locked":false,"title":"Merge some features from raneq fork","user":{"login":"raneq","id":46573858,"node_id":"MDQ6VXNlcjQ2NTczODU4","avatar_url":"https://avatars3.githubusercontent.com/u/46573858?v=4","gravatar_id":"","url":"https://api.github.com/users/raneq","html_url":"https://github.com/raneq","followers_url":"https://api.github.com/users/raneq/followers","following_url":"https://api.github.com/users/raneq/following{/other_user}","gists_url":"https://api.github.com/users/raneq/gists{/gist_id}","starred_url":"https://api.github.com/users/raneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raneq/subscriptions","organizations_url":"https://api.github.com/users/raneq/orgs","repos_url":"https://api.github.com/users/raneq/repos","events_url":"https://api.github.com/users/raneq/events{/privacy}","received_events_url":"https://api.github.com/users/raneq/received_events","type":"User","site_admin":false},"body":"Tested locally with branch local-backup and playbook https://gitlab.com/raneq/backups-role-sample-playbook\r\n\r\nsuperseeds #3 \r\n\r\nMost notably, we have:\r\n\r\n* unprivileged users both at unix level and postgres, doing the backups\r\n* logs from cron are saved, so if something gets wrong, we will be able to know why\r\n* all commands to be executed by cron are in a single script template\r\n* remote backups to backblaze work\r\n* saved data is\r\n  * config.tgz (config paths)\r\n  * assets.tgz (assets paths)\r\n  * pg_dump (one whole postgresql database)\r\n\r\nNeeds to be tested if there is any issue at restoring the backups, like different ownership (look at tar), if db dump can be imported, etc.","created_at":"2019-03-13T18:02:35Z","updated_at":"2019-03-14T14:53:36Z","closed_at":"2019-03-14T14:53:36Z","merged_at":"2019-03-14T14:53:36Z","merge_commit_sha":"c485154ce4e3fcb8edfa90eaba9111cd9fb750ed","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/coopdevs/backups-role/pulls/5/commits","review_comments_url":"https://api.github.com/repos/coopdevs/backups-role/pulls/5/comments","review_comment_url":"https://api.github.com/repos/coopdevs/backups-role/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coopdevs/backups-role/issues/5/comments","statuses_url":"https://api.github.com/repos/coopdevs/backups-role/statuses/d2057b3e1791d66dba8ef183f55954df01c4c7e7","head":{"label":"raneq:dev","ref":"dev","sha":"d2057b3e1791d66dba8ef183f55954df01c4c7e7","user":{"login":"raneq","id":46573858,"node_id":"MDQ6VXNlcjQ2NTczODU4","avatar_url":"https://avatars3.githubusercontent.com/u/46573858?v=4","gravatar_id":"","url":"https://api.github.com/users/raneq","html_url":"https://github.com/raneq","followers_url":"https://api.github.com/users/raneq/followers","following_url":"https://api.github.com/users/raneq/following{/other_user}","gists_url":"https://api.github.com/users/raneq/gists{/gist_id}","starred_url":"https://api.github.com/users/raneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raneq/subscriptions","organizations_url":"https://api.github.com/users/raneq/orgs","repos_url":"https://api.github.com/users/raneq/repos","events_url":"https://api.github.com/users/raneq/events{/privacy}","received_events_url":"https://api.github.com/users/raneq/received_events","type":"User","site_admin":false},"repo":{"id":173992016,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM5OTIwMTY=","name":"backups-role","full_name":"raneq/backups-role","private":false,"owner":{"login":"raneq","id":46573858,"node_id":"MDQ6VXNlcjQ2NTczODU4","avatar_url":"https://avatars3.githubusercontent.com/u/46573858?v=4","gravatar_id":"","url":"https://api.github.com/users/raneq","html_url":"https://github.com/raneq","followers_url":"https://api.github.com/users/raneq/followers","following_url":"https://api.github.com/users/raneq/following{/other_user}","gists_url":"https://api.github.com/users/raneq/gists{/gist_id}","starred_url":"https://api.github.com/users/raneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raneq/subscriptions","organizations_url":"https://api.github.com/users/raneq/orgs","repos_url":"https://api.github.com/users/raneq/repos","events_url":"https://api.github.com/users/raneq/events{/privacy}","received_events_url":"https://api.github.com/users/raneq/received_events","type":"User","site_admin":false},"html_url":"https://github.com/raneq/backups-role","description":"Backups strategy for Coopdevs projects","fork":true,"url":"https://api.github.com/repos/raneq/backups-role","forks_url":"https://api.github.com/repos/raneq/backups-role/forks","keys_url":"https://api.github.com/repos/raneq/backups-role/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raneq/backups-role/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raneq/backups-role/teams","hooks_url":"https://api.github.com/repos/raneq/backups-role/hooks","issue_events_url":"https://api.github.com/repos/raneq/backups-role/issues/events{/number}","events_url":"https://api.github.com/repos/raneq/backups-role/events","assignees_url":"https://api.github.com/repos/raneq/backups-role/assignees{/user}","branches_url":"https://api.github.com/repos/raneq/backups-role/branches{/branch}","tags_url":"https://api.github.com/repos/raneq/backups-role/tags","blobs_url":"https://api.github.com/repos/raneq/backups-role/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raneq/backups-role/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raneq/backups-role/git/refs{/sha}","trees_url":"https://api.github.com/repos/raneq/backups-role/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raneq/backups-role/statuses/{sha}","languages_url":"https://api.github.com/repos/raneq/backups-role/languages","stargazers_url":"https://api.github.com/repos/raneq/backups-role/stargazers","contributors_url":"https://api.github.com/repos/raneq/backups-role/contributors","subscribers_url":"https://api.github.com/repos/raneq/backups-role/subscribers","subscription_url":"https://api.github.com/repos/raneq/backups-role/subscription","commits_url":"https://api.github.com/repos/raneq/backups-role/commits{/sha}","git_commits_url":"https://api.github.com/repos/raneq/backups-role/git/commits{/sha}","comments_url":"https://api.github.com/repos/raneq/backups-role/comments{/number}","issue_comment_url":"https://api.github.com/repos/raneq/backups-role/issues/comments{/number}","contents_url":"https://api.github.com/repos/raneq/backups-role/contents/{+path}","compare_url":"https://api.github.com/repos/raneq/backups-role/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raneq/backups-role/merges","archive_url":"https://api.github.com/repos/raneq/backups-role/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raneq/backups-role/downloads","issues_url":"https://api.github.com/repos/raneq/backups-role/issues{/number}","pulls_url":"https://api.github.com/repos/raneq/backups-role/pulls{/number}","milestones_url":"https://api.github.com/repos/raneq/backups-role/milestones{/number}","notifications_url":"https://api.github.com/repos/raneq/backups-role/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raneq/backups-role/labels{/name}","releases_url":"https://api.github.com/repos/raneq/backups-role/releases{/id}","deployments_url":"https://api.github.com/repos/raneq/backups-role/deployments","created_at":"2019-03-05T17:36:11Z","updated_at":"2019-03-13T17:05:08Z","pushed_at":"2019-03-14T12:03:43Z","git_url":"git://github.com/raneq/backups-role.git","ssh_url":"git@github.com:raneq/backups-role.git","clone_url":"https://github.com/raneq/backups-role.git","svn_url":"https://github.com/raneq/backups-role","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coopdevs:master","ref":"master","sha":"bfdab61a8b88c7cee9ee608cdbebe94e02765a0d","user":{"login":"coopdevs","id":4038308,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzgzMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/4038308?v=4","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"repo":{"id":157860893,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc4NjA4OTM=","name":"backups-role","full_name":"coopdevs/backups-role","private":false,"owner":{"login":"coopdevs","id":4038308,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzgzMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/4038308?v=4","gravatar_id":"","url":"https://api.github.com/users/coopdevs","html_url":"https://github.com/coopdevs","followers_url":"https://api.github.com/users/coopdevs/followers","following_url":"https://api.github.com/users/coopdevs/following{/other_user}","gists_url":"https://api.github.com/users/coopdevs/gists{/gist_id}","starred_url":"https://api.github.com/users/coopdevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopdevs/subscriptions","organizations_url":"https://api.github.com/users/coopdevs/orgs","repos_url":"https://api.github.com/users/coopdevs/repos","events_url":"https://api.github.com/users/coopdevs/events{/privacy}","received_events_url":"https://api.github.com/users/coopdevs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/coopdevs/backups-role","description":"Backups strategy for Coopdevs projects","fork":false,"url":"https://api.github.com/repos/coopdevs/backups-role","forks_url":"https://api.github.com/repos/coopdevs/backups-role/forks","keys_url":"https://api.github.com/repos/coopdevs/backups-role/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopdevs/backups-role/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopdevs/backups-role/teams","hooks_url":"https://api.github.com/repos/coopdevs/backups-role/hooks","issue_events_url":"https://api.github.com/repos/coopdevs/backups-role/issues/events{/number}","events_url":"https://api.github.com/repos/coopdevs/backups-role/events","assignees_url":"https://api.github.com/repos/coopdevs/backups-role/assignees{/user}","branches_url":"https://api.github.com/repos/coopdevs/backups-role/branches{/branch}","tags_url":"https://api.github.com/repos/coopdevs/backups-role/tags","blobs_url":"https://api.github.com/repos/coopdevs/backups-role/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopdevs/backups-role/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopdevs/backups-role/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopdevs/backups-role/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopdevs/backups-role/statuses/{sha}","languages_url":"https://api.github.com/repos/coopdevs/backups-role/languages","stargazers_url":"https://api.github.com/repos/coopdevs/backups-role/stargazers","contributors_url":"https://api.github.com/repos/coopdevs/backups-role/contributors","subscribers_url":"https://api.github.com/repos/coopdevs/backups-role/subscribers","subscription_url":"https://api.github.com/repos/coopdevs/backups-role/subscription","commits_url":"https://api.github.com/repos/coopdevs/backups-role/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopdevs/backups-role/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopdevs/backups-role/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopdevs/backups-role/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopdevs/backups-role/contents/{+path}","compare_url":"https://api.github.com/repos/coopdevs/backups-role/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopdevs/backups-role/merges","archive_url":"https://api.github.com/repos/coopdevs/backups-role/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopdevs/backups-role/downloads","issues_url":"https://api.github.com/repos/coopdevs/backups-role/issues{/number}","pulls_url":"https://api.github.com/repos/coopdevs/backups-role/pulls{/number}","milestones_url":"https://api.github.com/repos/coopdevs/backups-role/milestones{/number}","notifications_url":"https://api.github.com/repos/coopdevs/backups-role/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopdevs/backups-role/labels{/name}","releases_url":"https://api.github.com/repos/coopdevs/backups-role/releases{/id}","deployments_url":"https://api.github.com/repos/coopdevs/backups-role/deployments","created_at":"2018-11-16T11:53:36Z","updated_at":"2018-11-16T11:56:00Z","pushed_at":"2019-03-14T14:53:36Z","git_url":"git://github.com/coopdevs/backups-role.git","ssh_url":"git@github.com:coopdevs/backups-role.git","clone_url":"https://github.com/coopdevs/backups-role.git","svn_url":"https://github.com/coopdevs/backups-role","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coopdevs/backups-role/pulls/5"},"html":{"href":"https://github.com/coopdevs/backups-role/pull/5"},"issue":{"href":"https://api.github.com/repos/coopdevs/backups-role/issues/5"},"comments":{"href":"https://api.github.com/repos/coopdevs/backups-role/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/coopdevs/backups-role/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/coopdevs/backups-role/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coopdevs/backups-role/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/coopdevs/backups-role/statuses/d2057b3e1791d66dba8ef183f55954df01c4c7e7"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"enricostano","id":748971,"node_id":"MDQ6VXNlcjc0ODk3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/748971?v=4","gravatar_id":"","url":"https://api.github.com/users/enricostano","html_url":"https://github.com/enricostano","followers_url":"https://api.github.com/users/enricostano/followers","following_url":"https://api.github.com/users/enricostano/following{/other_user}","gists_url":"https://api.github.com/users/enricostano/gists{/gist_id}","starred_url":"https://api.github.com/users/enricostano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricostano/subscriptions","organizations_url":"https://api.github.com/users/enricostano/orgs","repos_url":"https://api.github.com/users/enricostano/repos","events_url":"https://api.github.com/users/enricostano/events{/privacy}","received_events_url":"https://api.github.com/users/enricostano/received_events","type":"User","site_admin":false},"comments":0,"review_comments":11,"maintainer_can_modify":false,"commits":22,"additions":251,"deletions":46,"changed_files":7}}
other: {"actor":{"display_login":"enricostano"}}