On 16/1/26 上午3:19, John Snow wrote:
>
>
> On 01/25/2016 02:35 AM, Rudy Zhang wrote:
>> I am reading and testing the function: incremental backup in qemu-2.5.
>> But I have serveral questions about it.
>> 1. If I want to start image backup, at first I nee
I am reading and testing the function: incremental backup in qemu-2.5.
But I have serveral questions about it.
1. If I want to start image backup, at first I need to start full mode backup
and then, add a bitmap to trace io, next start incremental backup via the
bitmap before we added. But
device bitmap -- Clear dirty bitmap for
'device'
block_dirty_bitmap_remove device bitmap -- Remove dirty bitmap for
'device'
Signed-off-by: Rudy Zhang <rudyflyzh...@gmail.com>
---
hmp-commands.hx | 42 +++
hmp.c
Add hmp command for incremental backup in drive-backup.
It need a bitmap to backup data from drive-image to incremental image,
so before it need add bitmap for this device to track io.
Usage:
drive_backup [-n] [-f] device target [bitmap] [format]
Signed-off-by: Rudy Zhang <rudyfl
/incremental-1.qcow2 -b /path/full.qcow2
(qemu) block_dirty_bitmap_add drive-virtio-disk0 bitmap0
(qemu) drive-backup -n drive-virtio-disk0 /path/incremental-1.qcow2 bitmap0
Rudy Zhang (2):
hmp: add hmp command for incremental backup
hmp: add hmp commands dirty bitmap add/clear/remove'
hmp