vzmigrate: don't use rsync --delete-excluded
Options "--exclude $TOP_DELTA --delete-excluded" were used for rsync
in case of migration with ploop-copy in order to delete the top delta
so that ploop copy receive don't stumble (it does not overwrite
existing files).
Unfortunately, this makes it unable to pass some other arbitrary
--exclude options to rsync in case there is a need to say "skip those
files, they are already there" to rsync.
So, remove --delete-excluded, and make sure to run rm -f $TOP_DELTA
on destination just before starting ploop copy.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed