{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/7320","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7320/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7320/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7320/events","html_url":"https://github.com/mitchellh/vagrant/issues/7320","id":155171834,"number":7320,"title":"rsync exclude not excluding file patterns","user":{"login":"laggingreflex","id":2523987,"avatar_url":"https://avatars.githubusercontent.com/u/2523987?v=3","gravatar_id":"","url":"https://api.github.com/users/laggingreflex","html_url":"https://github.com/laggingreflex","followers_url":"https://api.github.com/users/laggingreflex/followers","following_url":"https://api.github.com/users/laggingreflex/following{/other_user}","gists_url":"https://api.github.com/users/laggingreflex/gists{/gist_id}","starred_url":"https://api.github.com/users/laggingreflex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laggingreflex/subscriptions","organizations_url":"https://api.github.com/users/laggingreflex/orgs","repos_url":"https://api.github.com/users/laggingreflex/repos","events_url":"https://api.github.com/users/laggingreflex/events{/privacy}","received_events_url":"https://api.github.com/users/laggingreflex/received_events","type":"User","site_admin":false},"labels":[{"id":25816,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/bug","name":"bug","color":"e11d21","default":true},{"id":218284916,"url":"https://api.github.com/repos/mitchellh/vagrant/labels/synced-folders/rsync","name":"synced-folders/rsync","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mitchellh/vagrant/milestones/21","html_url":"https://github.com/mitchellh/vagrant/milestone/21","labels_url":"https://api.github.com/repos/mitchellh/vagrant/milestones/21/labels","id":2040489,"number":21,"title":"Primary","description":"Primary issues to pull from for point releases. Main composition is bug reports and long outstanding requests.","creator":{"login":"chrisroberts","id":266674,"avatar_url":"https://avatars.githubusercontent.com/u/266674?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroberts","html_url":"https://github.com/chrisroberts","followers_url":"https://api.github.com/users/chrisroberts/followers","following_url":"https://api.github.com/users/chrisroberts/following{/other_user}","gists_url":"https://api.github.com/users/chrisroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroberts/subscriptions","organizations_url":"https://api.github.com/users/chrisroberts/orgs","repos_url":"https://api.github.com/users/chrisroberts/repos","events_url":"https://api.github.com/users/chrisroberts/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroberts/received_events","type":"User","site_admin":false},"open_issues":72,"closed_issues":28,"state":"open","created_at":"2016-09-30T16:45:35Z","updated_at":"2016-12-08T22:51:05Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-05-17T03:53:49Z","updated_at":"2016-12-08T22:51:05Z","closed_at":"2016-12-08T22:51:05Z","body":"I'm using Vagrant Synced Folders in RSync mode and trying to exclude certain filetypes. \n\nThe folders (.git, node_modules*) are excluded as expected, but the files (*.lnk, *.sublime*) are not. \n\nMy config is like this:\n\n```\nconfig.vm.synced_folder '.', '/home/vagrant/app',\n  type: 'rsync',\n  rsync__exclude: [\n    '.git*', 'node_modules*',\n    '*.lnk', '*.cmd', '*.sublime*', '*.sh'\n  ],\n  rsync__verbose: true\n```\n\nHere's the log of the sync:\n\n```\n    default: VirtualBox Version: 5.0\n==> default: Rsyncing folder: /cygdrive/c/web/project/ => /home/vagrant/app\n==> default:   - Exclude: [\".vagrant/\", \".git*\", \"node_modules*\", \"*.lnk\", \"*.cmd\", \"*.sublime*\", \"*.sh\"]\n==> default: Showing rsync output...\n==> default: rsync[stderr] -> Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\n==> default: rsync[stdout] -> sending incremental file list\n==> default: rsync[stdout] -> ./\n==> default: rsync[stdout] -> Project.sublime-workspace   << \"*.sublime*\" should've been excluded\n==> default: rsync[stdout] -> project.chrome.lnk          << \"*.lnk\"\n==> default: rsync[stdout] -> query.js\n==> default: rsync[stdout] -> project.sql\n==> default: rsync[stdout] -> vagrant.bootstrap.sh\n==> default: rsync[stdout] -> vagrant.load.cmd            << \"*.cmd\"\n==> default: rsync[stdout] -> client/\n==> default: rsync[stdout] -> client/.babelrc\n==> default: rsync[stdout] -> client/.eslintrc\n==> default: rsync[stdout] -> client/client.sublime-project\n...\n```\n\nIt's copying the files that are supposed to be excluded.\n\n---\n### Vagrant version\n\nVagrant 1.8.1\n### Host operating system\n\nWindows 10\n### Guest operating system\n\nUbuntu trusty64\n### Vagrantfile\n\n``` ruby\nVagrant.configure(2) do |config|\n  config.vm.box = \"ubuntu/trusty64\"\n  config.vm.synced_folder '.', '/home/vagrant/app',\n    type: 'rsync',\n    # rsync__verbose: true,\n    rsync__exclude: [\n      '.git*', 'node_modules*',\n      '*.log', '*.lnk', '*.cmd', '*.sh',\n      '*.sublime*',\n    ]\nend\n```\n### Debug output\n\nhttps://gist.github.com/laggingreflex/98c6c6d07561fcbacc66a2770aeb3530\n### Expected behavior\n\nI wanted to exclude some file types (*.lnk, *.cmd, *.sublime*, *.sh). They should **not** have been copied. \n### Actual behavior\n\nThe files got copied regardless the exclude rule. \n### Steps to reproduce\n1. Setup vagrant with rsync and exclude some filetypes with `rsync__exclude:['*.log']`\n2. See if the files are actually copied\n### References\n\n[Question on stackoverflow](http://stackoverflow.com/questions/37255453/vagrant-rsync-exclude-not-excluding-some-file-patterns)\nthis issue might be related: #4069\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/265879710","html_url":"https://github.com/mitchellh/vagrant/issues/7320#issuecomment-265879710","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7320","id":265879710,"user":{"login":"chrisroberts","id":266674,"avatar_url":"https://avatars.githubusercontent.com/u/266674?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroberts","html_url":"https://github.com/chrisroberts","followers_url":"https://api.github.com/users/chrisroberts/followers","following_url":"https://api.github.com/users/chrisroberts/following{/other_user}","gists_url":"https://api.github.com/users/chrisroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroberts/subscriptions","organizations_url":"https://api.github.com/users/chrisroberts/orgs","repos_url":"https://api.github.com/users/chrisroberts/repos","events_url":"https://api.github.com/users/chrisroberts/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroberts/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T22:51:05Z","updated_at":"2016-12-08T22:51:05Z","body":"Hi there,\r\n\r\nIt looks like this has been resolved within a previously shipped version of Vagrant so I am now closing this issue. If the original issue was not fully resolved, please reopen this issue or create a new one.\r\n\r\nCheers!"}}
{"actor":{"display_login":"chrisroberts"}}