On an OVS I have a few windows machines.
I want to create a full backup their .img disk files, thats done, .img.gz. Than I want to incrementally backup their C:/ partition, but thats not working.
The backup media is a tape drive installed on a remote windows machine accessible by FTP.
With help from my previous post I came up with the following commands for the first run:
cd /backup/win-vm-1/ losetup /dev/loop9 win-vm-1.img kpartx -av /dev/loop9 mount /dev/mapper/loop9p2 drive-C/ -o ro # Creates a 20Gb file tar -cSmf drive-C.0.tar --no-check-device -g drive-C.0.snapshot drive-C/ umount -d drive-C/ kpartx -dv /dev/loop9
For the incremental backups I tried the same script but with this changes:
cp drive-C.0.snapshot drive-C.1.snapshot tar -cSmf drive-C.1.tar --no-check-device -g drive-C.1.snapshot drive-C/
But doing this results in a 8.5GB file.
The changes made on the .img between the full and incremental backup were:
- Boot machine
- Create two .png files in one folder
- Delete one .png file in another folder
What am I doing wrong? Is there a better solution?