more work on 5000* demo
[eblake-techtalks.git] / 5300-libvirt-demo-incremental.term
blobee1fd8f2d1b646eeae166beaa699888f0dabdcbf
1 #!/bin/bash
3 source functions
5 # Title.
6 export title="Incremental pull mode backup"
8 # History.
9 remember 'cat backup2.xml'
10 remember 'cat checkpoint2.xml'
11 remember 'virsh backup-begin f32 backup2.xml checkpoint2.xml'
12 remember 'virsh backup-dumpxml f32'
13 remember ''
15 pushd $talkdir/demo.d >/dev/null
16 cat > backup2.xml <<\EOF
17 <domainbackup mode="pull">
18 <incremental>check1</incremental>
19 <server name="localhost" port="10809"/>
20 </domainbackup>
21 EOF
22 cat > checkpoint2.xml <<\EOF
23 <domaincheckpoint>
24 <name>check2</name>
25 </domaincheckpoint>
26 EOF
27 reset_f32 backup-5100.d
28 virsh start f32 >& /dev/null
29 terminal
30 popd >/dev/null