|
|
| Zeile 1: |
Zeile 1: |
| =Welche Platten werden benutzt=
| |
| *virsh domblklist tiazel.xinux.lan
| |
| Target Source
| |
| ------------------------------------------------
| |
| vda /var/lib/libvirt/images/tiazel.xinux.lan.qcow2
| |
| =Snapshot erzeugen=
| |
| *virsh snapshot-create-as --domain tiazel.xinux.lan state1 --diskspec vda,file=/var/lib/libvirt/images/tiazel.xinux.lan.state1 --disk-only --atomic
| |
| =Welche Platten werden benutzt=
| |
| *virsh domblklist tiazel.xinux.lan
| |
| Target Source
| |
| ------------------------------------------------
| |
| vda /var/lib/libvirt/images/tiazel.xinux.lan.state1
| |
| =Backup=
| |
| *rsync --progress /var/lib/libvirt/images/tiazel.xinux.lan.qcow2 /var/lib/libvirt/images/tiazel.xinux.lan-backup.qcow2
| |
| =Aktiver Zustand auf das alte Image übertragen und aktiv schalten=
| |
| *virsh blockcommit tiazel.xinux.lan vda --active --verbose --pivot
| |
| =Snapshot list=
| |
| *virsh snapshot-list tiazel.xinux.lan
| |
| Name Creation Time State
| |
| ------------------------------------------------------------
| |
| state1 2017-04-01 23:17:48 +0200 disk-snapshot
| |
| =Snapshot löschen=
| |
| *virsh snapshot-delete tiazel.xinux.lan --metadata state1
| |
| Domain snapshot state1 deleted
| |
|
| |
|
| =Virsh Backup Scripte=
| | *[[Backup über snapshot extern]] |
| *[[Virsh Backup Script Block Commit]] | |
| *[[Virsh Backup Script Block Commit Mail]]
| |
| | |
| =Links=
| |
| *https://blog.aurka.com/backups-mit-externen-snapshots-mittels-kvm-unter-ubuntu-1404.html
| |
| *http://wiki.libvirt.org/page/Live-merge-an-entire-disk-image-chain-including-current-active-disk
| |
| *https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Virtualization_Deployment_and_Administration_Guide/sub-sect-blockpull.html
| |
| *http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit
| |