Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_server:home_server_setup:kvm [2025-02-08 Sat wk06 17:08] – [KVM Backup] baumkphome_server:home_server_setup:kvm [2025-02-08 Sat wk06 17:11] (current) – [kvm back-up links] baumkp
Line 64: Line 64:
 ---- ----
 =====KVM Backup===== =====KVM Backup=====
-There seems to be main ways to backup a KVM virual machine +There seems to be main ways to backup a KVM virual machine:
-  - Copy the main file(s) while the VM is running +
-    -  <fc #ff0000>Not recommended</fc>, as file corruption will probably occur as the VM operation may and probably will modify the file during the copy process+
   - Shutdown the VM first and then copy the file.  Start the VM again after the copy is completed.   - Shutdown the VM first and then copy the file.  Start the VM again after the copy is completed.
   - Use virsh backup-begin command to allow live full backup   - Use virsh backup-begin command to allow live full backup
Line 72: Line 70:
     - Create a snapshot of the VM and direct all changes to the snapshot allowing safe backup of main VM file     - Create a snapshot of the VM and direct all changes to the snapshot allowing safe backup of main VM file
     - Active back commit the snapshot and verify back commit worked     - Active back commit the snapshot and verify back commit worked
 +  * Copy the main file(s) while the VM is running 
 +    -  <fc #ff0000>Not recommended</fc>, as file corruption will probably occur as the VM operation may and probably will modify the file during the copy process
 ====KVM Offline Backup==== ====KVM Offline Backup====
 <fc #ff0000>Note this only works on VMs that are shut down</fc> <fc #ff0000>Note this only works on VMs that are shut down</fc>
Line 88: Line 87:
   *[[https://ostechnix.com/export-import-kvm-virtual-machines-linux/|How To Export And Import KVM Virtual Machines In Linux]]   *[[https://ostechnix.com/export-import-kvm-virtual-machines-linux/|How To Export And Import KVM Virtual Machines In Linux]]
 ====kvm back-up links==== ====kvm back-up links====
-  *[[https://schh.medium.com/backup-and-restore-kvm-vms-21c049e707c1|Backup and Restore KVM Vms]] +  *[[https://schh.medium.com/backup-and-restore-kvm-vms-21c049e707c1|Backup and Restore KVM VMs]] - Shutdown VM method 
-  *[[https://www.bacula.org/kvm-backup-vm/|Backula Technical Considerations of a KVM Backup Process]]+  *[[https://www.bacula.org/kvm-backup-vm/|Backula Technical Considerations of a KVM Backup Process]] - Shutdown VM method
   *[[https://www.virtkick.com/docs/how-to-perform-a-live-backup-on-your-kvm-virtual-machines.html|Virtkick - How to Perform a Live Backup on your KVM Virtual Machines]]   *[[https://www.virtkick.com/docs/how-to-perform-a-live-backup-on-your-kvm-virtual-machines.html|Virtkick - How to Perform a Live Backup on your KVM Virtual Machines]]
   *[[https://libvirt.org/kbase/live_full_disk_backup.html|Libvirt.org - Efficient live full disk backup]]   *[[https://libvirt.org/kbase/live_full_disk_backup.html|Libvirt.org - Efficient live full disk backup]]