Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:kvm [2025-02-08 Sat wk06 16:56] – [Shrink the Disk File] baumkp | home_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 4 main ways to backup a KVM virual machine | + | There seems to be 3 main ways to backup a KVM virual machine: |
- | - Copy the main file(s) while the VM is running | + | |
- | - Not recommended 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 # | ||
====KVM Offline Backup==== | ====KVM Offline Backup==== | ||
<fc # | <fc # | ||
Line 82: | Line 81: | ||
-'' | -'' | ||
+ | |||
+ | *[[https:// | ||
References: | References: | ||
*[[https:// | *[[https:// | ||
====kvm back-up links==== | ====kvm back-up links==== | ||
- | *[[https:// | + | *[[https:// |
- | *[[https:// | + | *[[https:// |
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
Line 147: | Line 148: | ||
*When you verify all is well, it should be safe to either delete the backup of the original disk, or move it to an offline backup storage. | *When you verify all is well, it should be safe to either delete the backup of the original disk, or move it to an offline backup storage. | ||
- | ====KVM Backup==== | ||
- | There are 2 main ways to back up a KVM; 1. When the machine is shutdown, and 2. Using Online incremental backups. | ||
- | |||
- | ===References=== | ||
- | *[[https:// | ||
=====How to mount VM virtual disk on KVM hypervisor===== | =====How to mount VM virtual disk on KVM hypervisor===== | ||
There seem to be a number of methods to do this. | There seem to be a number of methods to do this. |