Skip to content

Latest commit

 

History

History
executable file
·
27 lines (20 loc) · 842 Bytes

README.md

File metadata and controls

executable file
·
27 lines (20 loc) · 842 Bytes

Vagrant RSync-Pull Plugin

This is a Vagrant 1.5+ plugin that works the same as the built-in RSync plugin, except files are sync'd from the guest to the host.

NOTE: This plugin requires Vagrant 1.5+

Usage

Install using standard Vagrant 1.1+ plugin installation methods.

$ vagrant plugin install vagrant-rsync-pull

After installing, edit your Vagrantfile and add a configuration directive similar to the below:

Vagrant.configure("2") do |config|
  config.vm.box = "dummy"
  config.vm.synced_folder "/home/myuser/myproject", "/opt/myproject", type: "rsync_pull"
end

Start up your vagrant box as normal (eg: vagrant up)

Start syncing folders

Folders will be pulled from the guest on vagrant up.

Run vagrant rsync-pull to manually sync files from the guest to your local host.