LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-23-2015, 02:22 PM   #1
shengyang999
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
KVM snapshot backup


Hi all,
i am newbie on KVM and have some questions regarding to the snapshot and backup.

First I want to know that what's the difference between snapshot and backup since the snapshot image can also be used as the backup image, right?

thanks for your reply
 
Old 09-24-2015, 10:34 AM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by shengyang999 View Post
Hi all,
i am newbie on KVM and have some questions regarding to the snapshot and backup.

First I want to know that what's the difference between snapshot and backup since the snapshot image can also be used as the backup image, right?

thanks for your reply
No, in KVM snapshots work a little different then in other hyper visors.
When you snap an image in kvm all you are doing is creating a new writable image and leaving the original image read-only, KVM refers this as a "backing image"

If you only save the snap you only have the data from after you created the snap, no OS no nothing, just everything after the snap was created.
Now if you want to create a backup, you would create a snapshot, copy the backing image (the original image) to the backup location and then live merge the snapshot back into the backing image.

This ensures two things:
1) anything written to disk will not be copied while you are transferring your backup.
2) anything written to the snap will get merged back in to the original disk so those changes are not lost during the backup process.

This is en entirely live process, meaning the VM doesn't get interrupted at all while you are backing this image up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm snapshot zolainfo Linux - Virtualization and Cloud 5 08-05-2015 08:13 PM
[SOLVED] naming convention of KVM VM snapshot name rohitchauhan Linux - Virtualization and Cloud 1 02-03-2014 04:51 PM
Snapshot & Clone on KVM benelux.j Linux - Virtualization and Cloud 3 12-03-2012 02:37 AM
How to get snapshot backup the KVM Virtual Guest ? splinux Linux - Virtualization and Cloud 0 06-30-2012 01:06 AM
kvm-qemu snapshot mode. RaptorX Linux - Software 1 08-18-2009 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration