| Server IP : 104.21.25.180 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/help/gl/gnome-boxes/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="backup" xml:lang="gl">
<info>
<link type="guide" xref="index#advanced"/>
<revision pkgversion="3.30" date="2018-12-01" status="review"/>
<credit type="author copyright">
<name>Michael Hill</name>
<email>[email protected]</email>
<years>2018</years>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<desc>Write the configuration of a box to a file to back it up or move it.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Fran Dieguez</mal:name>
<mal:email>[email protected]</mal:email>
<mal:years>2018-2020.</mal:years>
</mal:credit>
</info>
<title>Back up or move a box</title>
<p>Two components are required to back up or move a box: the image file, and
the configuration of the box saved as an XML file. Saving the configuration
requires the <cmd>virsh</cmd> command from the <app>libvirt</app> or
<app>libvirt-client</app> package.</p>
<steps>
<item>
<p>In a terminal window, type</p>
<code>virsh dumpxml Name > Name.xml</code>
<p>where <cmd>Name</cmd> is the <app>Boxes</app> name, or <em>domain</em>,
of your box. To list the domains seen by <app>Boxes</app>, type</p>
<code>virsh -c qemu:///session list --all</code>
</item>
<item>
<p>Copy the <cmd>.xml</cmd> file you just created to your backup or
temporary storage location.</p>
</item>
<item>
<p>Copy the image file to your backup or temporary storage location. It
will be a file with the domain name of your box and ending in
<cmd>.qcow2</cmd>, located in
<file>~/.local/share/gnome-boxes/images/</file>.</p>
</item>
</steps>
<section id="restore">
<title>Restore a box</title>
<p>The saved box can be installed into <app>Boxes</app> on a new host
machine, or on the original machine as part of a disaster recovery
scenario.</p>
<steps>
<item>
<p>Exit <app>Boxes</app>.</p>
</item>
<item>
<p>Copy the <cmd>.qcow2</cmd> image file from your backup or temporary
storage location into the <file>~/.local/share/gnome-boxes/images/</file>
directory in the new location.</p>
</item>
<item>
<p>In a terminal window, navigate to the directory or device containing
the <cmd>.xml</cmd> file you stored. Type</p>
<code>virsh define Name.xml</code>
<p>where <cmd>Name</cmd> is the domain of your box.</p>
</item>
<item>
<p>Launch <app>Boxes</app>.</p>
</item>
</steps>
</section>
</page>