LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-08-2022, 10:14 AM   #1
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Rep: Reputation: 2
What does the positional parameters of "virsh backup-begin" actually do?


Normally when I backup a kvm machine I shutdown the machine then run:

Code:
virsh list -all
virsh shutdown Ubuntu18
virsh dumpxml Ubuntu18 > /MyBackup/Ubuntu18.xml
cp /var/lib/libvirt/images/Ubuntu18.qcow2 /MyBackup/Ubuntu18.qcow2
However, I found a new sub-command. The help file says:

Code:
% virsh backup-begin --help
NAME
  backup-begin - Start a disk backup of a live domain

SYNOPSIS
  backup-begin <domain> [--backupxml <string>] [--checkpointxml <string>] [--reuse-external]

DESCRIPTION
  Use XML to start a full or incremental disk backup of a live domain, optionally creating a checkpoint

OPTIONS
  [--domain] <string>  domain name, id or uuid
  --backupxml <string>  domain backup XML
  --checkpointxml <string>  domain checkpoint XML
  --reuse-external  reuse files provided by caller
The problem with this help is, it is not clear enough.

I understand that I should use `virsh backup-begin vm1` to backup a live kvm machine. However, this command only create `.qcow2` files. What about the `.xml` file.

What does `--backupxml` , `--checkpointxml` & `--reuse-external` actually do? When should I use them?
 
Old 01-09-2022, 06:24 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,967

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
this link contains some additional details: https://www.libvirt.org/manpages/vir...l#backup-begin
 
  


Reply

Tags
kvm



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
HELP! Positional Parameters are giving me a headache! Scott_82 Linux - Newbie 7 05-06-2007 03:32 PM
shell: positional parameters... neidias Programming 1 04-04-2005 02:45 PM
Positional Parameters (arguments) desbyleo Solaris / OpenSolaris 2 10-25-2004 11:51 AM
positional parameters $1 $2 in sed command Warmduvet Programming 12 09-22-2004 03:56 PM
Help with positional parameters Read_Icculus Linux - General 7 11-02-2003 04:23 AM

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

All times are GMT -5. The time now is 07:09 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