{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/1481","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/1481/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/1481/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/1481/events","html_url":"https://github.com/aws/aws-cli/issues/1481","id":104232793,"number":1481,"title":"aws s3 sync --delete behaves differently if source is <LocalPath> rather than <S3Path>","user":{"login":"jrotenstein","id":5842760,"avatar_url":"https://avatars.githubusercontent.com/u/5842760?v=3","gravatar_id":"","url":"https://api.github.com/users/jrotenstein","html_url":"https://github.com/jrotenstein","followers_url":"https://api.github.com/users/jrotenstein/followers","following_url":"https://api.github.com/users/jrotenstein/following{/other_user}","gists_url":"https://api.github.com/users/jrotenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/jrotenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrotenstein/subscriptions","organizations_url":"https://api.github.com/users/jrotenstein/orgs","repos_url":"https://api.github.com/users/jrotenstein/repos","events_url":"https://api.github.com/users/jrotenstein/events{/privacy}","received_events_url":"https://api.github.com/users/jrotenstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T10:06:19Z","updated_at":"2015-09-01T21:24:41Z","closed_at":null,"body":"This issue was raised on: https://stackoverflow.com/questions/32304326/amazon-s3-sync-deleting-excluded-files\r\n\r\nBasically, doing `aws s3 sync . s3://bucket2 --delete` behaves differently to `aws s3 sync s3://bucket1 s3://bucket2 --delete` even if the two source directories are identical.\r\n\r\nIt would appear that the logic for `--delete` behaves differently between Local and S3. An example is well-documented in the stackoverflow issue."},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/136865237","html_url":"https://github.com/aws/aws-cli/issues/1481#issuecomment-136865237","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/1481","id":136865237,"user":{"login":"kyleknap","id":4605355,"avatar_url":"https://avatars.githubusercontent.com/u/4605355?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleknap","html_url":"https://github.com/kyleknap","followers_url":"https://api.github.com/users/kyleknap/followers","following_url":"https://api.github.com/users/kyleknap/following{/other_user}","gists_url":"https://api.github.com/users/kyleknap/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleknap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleknap/subscriptions","organizations_url":"https://api.github.com/users/kyleknap/orgs","repos_url":"https://api.github.com/users/kyleknap/repos","events_url":"https://api.github.com/users/kyleknap/events{/privacy}","received_events_url":"https://api.github.com/users/kyleknap/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T21:24:41Z","updated_at":"2015-09-01T21:24:41Z","body":"I can confirm the file being unexpectedly deleted. The files being copied over from the s3 bucket to other s3 bucket is as expected because the objects in the origin bucket are newer than the objects in the destination bucket."}}