{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/comments/71384037","id":71384037,"diff_hunk":"@@ -0,0 +1,57 @@\n+## Rollback\n+\n+The purpose of the rollback script is to be able to rollback the current version of the site to an older export. This means that if there are any problems with an export\n+that has just been rsynced, you can go back to a known working export.\n+\n+### How do I determine old exports?\n+\n+Each time an export is rsynced to the Apache server for serving, it is archived (by default into `/export/export-archive`). The directory into which the archive is made is named\n+\n+```\n+export-<yyyy>-<mm>-<dd>-<hh>-<mm>-<ss> e.g\n+export-2016-07-13-10-00-00\n+```\n+\n+Using the naming structure, you can then determine which export you would like to rollback to. If you wish you can also browse into the given export directories to perform\n+a manual inspection of the site at that point in time.\n+\n+### How do I perform the rollback\n+\n+To use the rollback, you need to execute the script as follows:\n+\n+```\n+ruby rollback.rb <rsync_destination> <name_of_archived_export> ","path":"_docker/lib/rollback/README.md","position":23,"original_position":23,"commit_id":"cebc78d27338fb9760c136d127365bbc359a29e0","original_commit_id":"cebc78d27338fb9760c136d127365bbc359a29e0","user":{"login":"LightGuard","id":29971,"avatar_url":"https://avatars.githubusercontent.com/u/29971?v=3","gravatar_id":"","url":"https://api.github.com/users/LightGuard","html_url":"https://github.com/LightGuard","followers_url":"https://api.github.com/users/LightGuard/followers","following_url":"https://api.github.com/users/LightGuard/following{/other_user}","gists_url":"https://api.github.com/users/LightGuard/gists{/gist_id}","starred_url":"https://api.github.com/users/LightGuard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightGuard/subscriptions","organizations_url":"https://api.github.com/users/LightGuard/orgs","repos_url":"https://api.github.com/users/LightGuard/repos","events_url":"https://api.github.com/users/LightGuard/events{/privacy}","received_events_url":"https://api.github.com/users/LightGuard/received_events","type":"User","site_admin":false},"body":"Should these be `bundle exec ruby ...`?","created_at":"2016-07-19T17:26:45Z","updated_at":"2016-07-19T17:26:45Z","html_url":"https://github.com/redhat-developer/developers.redhat.com/pull/1284#discussion_r71384037","pull_request_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284","_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/comments/71384037"},"html":{"href":"https://github.com/redhat-developer/developers.redhat.com/pull/1284#discussion_r71384037"},"pull_request":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284"}}},"pull_request":{"url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284","id":78008524,"html_url":"https://github.com/redhat-developer/developers.redhat.com/pull/1284","diff_url":"https://github.com/redhat-developer/developers.redhat.com/pull/1284.diff","patch_url":"https://github.com/redhat-developer/developers.redhat.com/pull/1284.patch","issue_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/1284","number":1284,"state":"open","locked":false,"title":"[DEVELOPER-1998] Support rollback to a previous export","user":{"login":"robpblake","id":1170393,"avatar_url":"https://avatars.githubusercontent.com/u/1170393?v=3","gravatar_id":"","url":"https://api.github.com/users/robpblake","html_url":"https://github.com/robpblake","followers_url":"https://api.github.com/users/robpblake/followers","following_url":"https://api.github.com/users/robpblake/following{/other_user}","gists_url":"https://api.github.com/users/robpblake/gists{/gist_id}","starred_url":"https://api.github.com/users/robpblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpblake/subscriptions","organizations_url":"https://api.github.com/users/robpblake/orgs","repos_url":"https://api.github.com/users/robpblake/repos","events_url":"https://api.github.com/users/robpblake/events{/privacy}","received_events_url":"https://api.github.com/users/robpblake/received_events","type":"User","site_admin":false},"body":"This pull request makes it possible to rollback the site to a previous export. It does this by:\r\n\r\n- Ensuring that all successful rsync exports are archived on disk\r\n- Providing a control.rb option to allow the user to specify an export archive to rsync in place of the existing site\r\n\r\nThis update also performs house-keeping on archives created. Only the most recent 15 export archives are kept by default.","created_at":"2016-07-19T16:32:36Z","updated_at":"2016-07-19T17:26:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9ef67387e1faa8cf271ae7269b317dc63da1876","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284/commits","review_comments_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284/comments","review_comment_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/1284/comments","statuses_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/statuses/cebc78d27338fb9760c136d127365bbc359a29e0","head":{"label":"robpblake:developer-1998-support-rollback","ref":"developer-1998-support-rollback","sha":"cebc78d27338fb9760c136d127365bbc359a29e0","user":{"login":"robpblake","id":1170393,"avatar_url":"https://avatars.githubusercontent.com/u/1170393?v=3","gravatar_id":"","url":"https://api.github.com/users/robpblake","html_url":"https://github.com/robpblake","followers_url":"https://api.github.com/users/robpblake/followers","following_url":"https://api.github.com/users/robpblake/following{/other_user}","gists_url":"https://api.github.com/users/robpblake/gists{/gist_id}","starred_url":"https://api.github.com/users/robpblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpblake/subscriptions","organizations_url":"https://api.github.com/users/robpblake/orgs","repos_url":"https://api.github.com/users/robpblake/repos","events_url":"https://api.github.com/users/robpblake/events{/privacy}","received_events_url":"https://api.github.com/users/robpblake/received_events","type":"User","site_admin":false},"repo":{"id":54463504,"name":"developers.redhat.com","full_name":"robpblake/developers.redhat.com","owner":{"login":"robpblake","id":1170393,"avatar_url":"https://avatars.githubusercontent.com/u/1170393?v=3","gravatar_id":"","url":"https://api.github.com/users/robpblake","html_url":"https://github.com/robpblake","followers_url":"https://api.github.com/users/robpblake/followers","following_url":"https://api.github.com/users/robpblake/following{/other_user}","gists_url":"https://api.github.com/users/robpblake/gists{/gist_id}","starred_url":"https://api.github.com/users/robpblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpblake/subscriptions","organizations_url":"https://api.github.com/users/robpblake/orgs","repos_url":"https://api.github.com/users/robpblake/repos","events_url":"https://api.github.com/users/robpblake/events{/privacy}","received_events_url":"https://api.github.com/users/robpblake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robpblake/developers.redhat.com","description":"Sources for developer.redhat.com","fork":true,"url":"https://api.github.com/repos/robpblake/developers.redhat.com","forks_url":"https://api.github.com/repos/robpblake/developers.redhat.com/forks","keys_url":"https://api.github.com/repos/robpblake/developers.redhat.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robpblake/developers.redhat.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robpblake/developers.redhat.com/teams","hooks_url":"https://api.github.com/repos/robpblake/developers.redhat.com/hooks","issue_events_url":"https://api.github.com/repos/robpblake/developers.redhat.com/issues/events{/number}","events_url":"https://api.github.com/repos/robpblake/developers.redhat.com/events","assignees_url":"https://api.github.com/repos/robpblake/developers.redhat.com/assignees{/user}","branches_url":"https://api.github.com/repos/robpblake/developers.redhat.com/branches{/branch}","tags_url":"https://api.github.com/repos/robpblake/developers.redhat.com/tags","blobs_url":"https://api.github.com/repos/robpblake/developers.redhat.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robpblake/developers.redhat.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robpblake/developers.redhat.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/robpblake/developers.redhat.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robpblake/developers.redhat.com/statuses/{sha}","languages_url":"https://api.github.com/repos/robpblake/developers.redhat.com/languages","stargazers_url":"https://api.github.com/repos/robpblake/developers.redhat.com/stargazers","contributors_url":"https://api.github.com/repos/robpblake/developers.redhat.com/contributors","subscribers_url":"https://api.github.com/repos/robpblake/developers.redhat.com/subscribers","subscription_url":"https://api.github.com/repos/robpblake/developers.redhat.com/subscription","commits_url":"https://api.github.com/repos/robpblake/developers.redhat.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/robpblake/developers.redhat.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/robpblake/developers.redhat.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/robpblake/developers.redhat.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/robpblake/developers.redhat.com/contents/{+path}","compare_url":"https://api.github.com/repos/robpblake/developers.redhat.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robpblake/developers.redhat.com/merges","archive_url":"https://api.github.com/repos/robpblake/developers.redhat.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robpblake/developers.redhat.com/downloads","issues_url":"https://api.github.com/repos/robpblake/developers.redhat.com/issues{/number}","pulls_url":"https://api.github.com/repos/robpblake/developers.redhat.com/pulls{/number}","milestones_url":"https://api.github.com/repos/robpblake/developers.redhat.com/milestones{/number}","notifications_url":"https://api.github.com/repos/robpblake/developers.redhat.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robpblake/developers.redhat.com/labels{/name}","releases_url":"https://api.github.com/repos/robpblake/developers.redhat.com/releases{/id}","deployments_url":"https://api.github.com/repos/robpblake/developers.redhat.com/deployments","created_at":"2016-03-22T09:44:50Z","updated_at":"2016-03-22T09:44:53Z","pushed_at":"2016-07-19T16:29:40Z","git_url":"git://github.com/robpblake/developers.redhat.com.git","ssh_url":"git@github.com:robpblake/developers.redhat.com.git","clone_url":"https://github.com/robpblake/developers.redhat.com.git","svn_url":"https://github.com/robpblake/developers.redhat.com","homepage":null,"size":131009,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"redhat-developer:master","ref":"master","sha":"37df390d46079d082369ec875737e243926c53e4","user":{"login":"redhat-developer","id":11033755,"avatar_url":"https://avatars.githubusercontent.com/u/11033755?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"repo":{"id":32529252,"name":"developers.redhat.com","full_name":"redhat-developer/developers.redhat.com","owner":{"login":"redhat-developer","id":11033755,"avatar_url":"https://avatars.githubusercontent.com/u/11033755?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-developer/developers.redhat.com","description":"Sources for developer.redhat.com","fork":false,"url":"https://api.github.com/repos/redhat-developer/developers.redhat.com","forks_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/forks","keys_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/teams","hooks_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/hooks","issue_events_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/events","assignees_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/tags","blobs_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/languages","stargazers_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/stargazers","contributors_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/contributors","subscribers_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/subscribers","subscription_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/subscription","commits_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/merges","archive_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/downloads","issues_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/labels{/name}","releases_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-developer/developers.redhat.com/deployments","created_at":"2015-03-19T15:19:25Z","updated_at":"2016-06-03T08:55:49Z","pushed_at":"2016-07-19T17:25:35Z","git_url":"git://github.com/redhat-developer/developers.redhat.com.git","ssh_url":"git@github.com:redhat-developer/developers.redhat.com.git","clone_url":"https://github.com/redhat-developer/developers.redhat.com.git","svn_url":"https://github.com/redhat-developer/developers.redhat.com","homepage":null,"size":134028,"stargazers_count":19,"watchers_count":19,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":11,"forks":50,"open_issues":11,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284"},"html":{"href":"https://github.com/redhat-developer/developers.redhat.com/pull/1284"},"issue":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/1284"},"comments":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/issues/1284/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/pulls/1284/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-developer/developers.redhat.com/statuses/cebc78d27338fb9760c136d127365bbc359a29e0"}}}}
{"actor":{"display_login":"LightGuard"}}