title: Vagrant 2 way folder sync
body: <p>I've setup a Vagrant box that runs my webserver to host my Symfony2 application.
  Everything works fine except the folder synchronization.</p>
  <p>I tried 2 things:</p>
  <ol>
  <li>config.vm.synced_folder LOCALFOLDER, HOSTFOLDER</li>
  <li>config.vm.synced_folder LOCALFOLDER, HOSTFOLDER, type=&quot;rsync&quot;</li>
  </ol>
  <p><strong>Option 1</strong>: First option works, I actually don't know how file is shared but it works.
  Files are copied in both way, but the application is SUPER slow.
  Symfony is generating cache files which might be the issue, but I don't really know how to troubleshoot this and see what is happening.</p>
  <p><strong>Option 2:</strong> Sync is only done in one way (from my local machine to the vagrant box), which covers most of the case and is fast.
  Issue is that when I use symfony command line on the vagrant box to generate some files they are not copied over to my local machine.</p>
  <p><strong>My question is:</strong>
  What is the best way to proceed with 2 ways syncing? With option 1 how can I (as it might be the issue) exclude some files from syncing.
  With Option 2 how can I make sure changes on remote are copied to my local machine?</p>