{"action":"created","issue":{"url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/7","labels_url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/7/comments","events_url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/7/events","html_url":"https://github.com/theycallmeswift/node-mongodb-s3-backup/pull/7","id":23030892,"number":7,"title":"Clean up local tarball and backup dir after successful S3 upload. ","user":{"login":"riggsd","id":647785,"avatar_url":"https://avatars.githubusercontent.com/u/647785?v=3","gravatar_id":"","url":"https://api.github.com/users/riggsd","html_url":"https://github.com/riggsd","followers_url":"https://api.github.com/users/riggsd/followers","following_url":"https://api.github.com/users/riggsd/following{/other_user}","gists_url":"https://api.github.com/users/riggsd/gists{/gist_id}","starred_url":"https://api.github.com/users/riggsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riggsd/subscriptions","organizations_url":"https://api.github.com/users/riggsd/orgs","repos_url":"https://api.github.com/users/riggsd/repos","events_url":"https://api.github.com/users/riggsd/events{/privacy}","received_events_url":"https://api.github.com/users/riggsd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-11-20T22:53:01Z","updated_at":"2015-04-17T16:57:33Z","closed_at":"2015-04-17T16:57:33Z","pull_request":{"url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/pulls/7","html_url":"https://github.com/theycallmeswift/node-mongodb-s3-backup/pull/7","diff_url":"https://github.com/theycallmeswift/node-mongodb-s3-backup/pull/7.diff","patch_url":"https://github.com/theycallmeswift/node-mongodb-s3-backup/pull/7.patch"},"body":"This patch deletes the backup dir and tarball after successful S3 upload.\r\n\r\nI attempted to clean up unconditionally, but keep running into a bizarre EPIPE error related to either asynchronous logging to stdout after process ends or related to the exec calling `rm -rf`. At least cleaning up on success is closer to the right behavior than current behavior, which will quickly fill up a filesystem for very large databases."},"comment":{"url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/comments/94026966","html_url":"https://github.com/theycallmeswift/node-mongodb-s3-backup/pull/7#issuecomment-94026966","issue_url":"https://api.github.com/repos/theycallmeswift/node-mongodb-s3-backup/issues/7","id":94026966,"user":{"login":"theycallmeswift","id":434373,"avatar_url":"https://avatars.githubusercontent.com/u/434373?v=3","gravatar_id":"","url":"https://api.github.com/users/theycallmeswift","html_url":"https://github.com/theycallmeswift","followers_url":"https://api.github.com/users/theycallmeswift/followers","following_url":"https://api.github.com/users/theycallmeswift/following{/other_user}","gists_url":"https://api.github.com/users/theycallmeswift/gists{/gist_id}","starred_url":"https://api.github.com/users/theycallmeswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theycallmeswift/subscriptions","organizations_url":"https://api.github.com/users/theycallmeswift/orgs","repos_url":"https://api.github.com/users/theycallmeswift/repos","events_url":"https://api.github.com/users/theycallmeswift/events{/privacy}","received_events_url":"https://api.github.com/users/theycallmeswift/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T16:57:33Z","updated_at":"2015-04-17T16:57:33Z","body":"This is now out of date.  Happy to reinvestigate if you can test on the latest version and confirm it works."}}