I have 2 NAS in different cities.
I have on both NAS the same disk volume files from VirtualBox (*.vdi) with size >90GB.
Until now I use rsync -vrS "$@" --inplace --no-whole-file --progress --include="*/" --include="*.vdi" --include="*.vhd" --exclude="*" user@myserver.org:/media/nas/Path/VirtualBox/ /media/nas/Path/VirtualBox/.
This command initially create the sha1 checksums on both sides and compare them. But instead of writing only the different chunks, it rewrites the complete file! But I just boot the VM and shutdown it. Of course some clusters in the VM’s disk volume changed but this means that only these areas must be copied to the target file — not the complete file.
If I made a torrent of VM’s disk volume file and download it inplace on target file, torrent handle the changed parts correctly.
It seems that something is wrong with rsync or probably with my parameters.
- Where is the problem with rsync?
- Is there better tty solutions than torrents, for that case?