I'm backing up some VMs of VirtualBox with somewhat large image files for their HDDs using RSYNC currently. Some of those images are 100 GiB in size, one is even 750. Backing those files up by letting RSYNC calculate differences only takes too much time, most likely because the backup target is some older Synology DS1512+ NAS. While it's not too slow, the difference between using --whole-file
and not is significant: 3 hours vs. aborting after 12.
That's why I'm considering splitting up those large images into smaller chunks of e.g. 2 GiB in size. That should be possible with VirtualBox by simply cloning available images to VMDK in splitted variant. The expectation is that because VMs don't always overwrite their whole available data, but only some parts of it, that only some of the splitted files would be recognized as changed by RSYNC and would need to be backed up, lowering overall time to do so in the end.
The used RSYNC options currently are the following:
--owner \
--numeric-ids \
--compress-level=0 \
--group \
--perms \
--rsh=rsh \
--devices \
--hard-links \
--inplace \
--whole-file \
--links \
--recursive \
--times \
--delete \
--delete-during \
--delete-excluded \
--rsync-path=[...] \
--specials
Is that correct or does VirtualBox write to ALL individual parts always for some reason? Other thanks to need to take into account or why this approach might not work?
Thanks!
rsync
command look like?--whole-file
only anyway.