From 7c1aaba85ec2e8c22bfc19fe8747c861950c7f41 Mon Sep 17 00:00:00 2001 From: KalabiYau Date: Thu, 3 Oct 2013 16:01:33 +0200 Subject: [PATCH] Delete files from destination to avoid confusions --- lib/vagrant-libvirt/action/sync_folders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-libvirt/action/sync_folders.rb b/lib/vagrant-libvirt/action/sync_folders.rb index c4ded81..df8a2f9 100644 --- a/lib/vagrant-libvirt/action/sync_folders.rb +++ b/lib/vagrant-libvirt/action/sync_folders.rb @@ -37,7 +37,7 @@ module VagrantPlugins # Rsync over to the guest path using the SSH info command = [ - "rsync", "--verbose", "--archive", "-z", + "rsync", "--del", "--verbose", "--archive", "-z", "--exclude", ".vagrant/", "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'", hostpath,