dcosson / vagrant-unison2

Vagrant plugin to sync local files to VM using Unison over SSH
MIT License
50 stars 8 forks source link

Set folder and paths #14

Open peternijssen opened 8 years ago

peternijssen commented 8 years ago

I am by no means a unison expert, but I believe you can set like a root directory and several paths. Perhaps it's a nice addition to this plugin.

So that you can configure something like this for the root directories;

    config.unison.host_folder = "src/"  
    config.unison.guest_folder = "~/Sites/" 

And then multiple paths;

config.unison.paths = [ "Site1/", "Site2/" ]

This way you can sync multiple sites, without syncing your complete directory.

http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#roots http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#paths

dcosson commented 8 years ago

👍 this does look useful