what would you recommend for for resizable, or ideally, automatically resizing volume for this?
the idea is to attach an image an appvm, rsync the data you want to backup. then remount it in a dedicated backupvm which only runs rdiff-backup to an external disk. that way, the backup is fast (rsync and rdiff) and is protected from any malware trying to write to the past, and can be done without having to shutdown any vm.
>
> the idea is to attach an image an appvm, rsync the data you want to backup. then remount it in a dedicated backupvm which only runs rdiff-backup to an external disk. that way, the backup is fast (rsync and rdiff) and is protected from any malware trying to write to the past, and can be done without having to shutdown any vm.
you may get inconsistent backups. it would make sense to stop it temporarily in a consistent state and then send the private image from dom0 to the backupvm. this should work work full backups. partial backups would probably have to be done your way.
BTW, what's the correct way to detach one image file? it's not mentioned in the man page :(
that would be faster :) but, reinstalling and restoring from backups would take a long time. maybe i could run it overnight.
in the mean time ill try sparse or qcow2 images since those automatically grow when needed.
> Chris
> in the mean time ill try sparse or qcow2 images since those automatically grow when needed.
turns out qcow2 doesnt work, which is a shame given that you can move them across filesystems and preserve their "sparseness". but, for anyone else who wants to do this
somvm:~$ qemu-img create myimg.img 10G
dom0:~$ qvm-block -A targetvm somevm:/home/user/myimg.img
given that it can "reach in" the backup vm could simply mount from within after after syncing.