{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/3","labels_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/3/comments","events_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/3/events","html_url":"https://github.com/mapbox/dynamodb-replicator/pull/3","id":69214729,"number":3,"title":"Backup","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-17T20:47:11Z","updated_at":"2015-04-22T16:57:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/dynamodb-replicator/pulls/3","html_url":"https://github.com/mapbox/dynamodb-replicator/pull/3","diff_url":"https://github.com/mapbox/dynamodb-replicator/pull/3.diff","patch_url":"https://github.com/mapbox/dynamodb-replicator/pull/3.patch"},"body":"This PR adds automatic backups to s3. A new configuration step has been added:\r\n\r\n```js\r\nvar config = {\r\n    primary: {\r\n        region: process.env.PrimaryRegion,\r\n        table: process.env.PrimaryTable\r\n    },\r\n    replica: {\r\n        region: process.env.ReplicaRegion,\r\n        table: process.env.ReplicaTable\r\n    },\r\n    backup = { // NEW\r\n        bucket: 'data',\r\n        prefix: 'dynamo-backup'\r\n    }\r\n};\r\n```\r\n\r\nWhile records are checked, they are written to a file on the the filesystem and then uploaded to s3 once the full check has completed. \r\n\r\n/cc @rclark "},"comment":{"url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/comments/95263596","html_url":"https://github.com/mapbox/dynamodb-replicator/pull/3#issuecomment-95263596","issue_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/3","id":95263596,"user":{"login":"rclark","id":515424,"avatar_url":"https://avatars.githubusercontent.com/u/515424?v=3","gravatar_id":"","url":"https://api.github.com/users/rclark","html_url":"https://github.com/rclark","followers_url":"https://api.github.com/users/rclark/followers","following_url":"https://api.github.com/users/rclark/following{/other_user}","gists_url":"https://api.github.com/users/rclark/gists{/gist_id}","starred_url":"https://api.github.com/users/rclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclark/subscriptions","organizations_url":"https://api.github.com/users/rclark/orgs","repos_url":"https://api.github.com/users/rclark/repos","events_url":"https://api.github.com/users/rclark/events{/privacy}","received_events_url":"https://api.github.com/users/rclark/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:57:46Z","updated_at":"2015-04-22T16:57:46Z","body":"Per discussion, the backup code is incompatible with the parallelization options for the repair loop. \r\n\r\nLet's finish this PR by making `config.backup` optional, but throw an error if you specify it alongside `config.segments`. That is to say, you can _either_ run the backup to S3 _or_ you can run the repair via parallel scan. With that in place we'll circle back to enabling parallel backups."}}