Answer the question
In order to leave comments, you need to log in
Why does Vargant rsync delete a file from the guest machine?
Good afternoon,
so, there is Vagrant with the following config:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty32"
config.vm.box_check_update = false
config.vm.network "private_network", ip: "192.168.50.100"
config.vm.synced_folder ".", "/vagrant", type: "rsync",
rsync__exclude: ".git/",
rsync__chown: true,
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--owner=vagrant", "--group=vagrant"],
rsync__auto: true,
owner: "vagrant",
group: "vagrant"
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "site.pp"
puppet.module_path = "manifests/modules"
end
config.vm.provider "virtualbox" do |v|
v.memory = 1536
v.cpus = 1
v.customize ["modifyvm", :id, "--cpuexecutioncap", "95"]
end
end
Answer the question
In order to leave comments, you need to log in
If you remove the --delete flag, then the files are not deleted.
But how now to set up reverse synchronization? So that files created / updated on the guest machine are transferred back to me?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question