User Tools

Site Tools


proxmox:backup_restore_vms:using_the_cli

Differences

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

Link to this comparison view

Next revision
Previous revision
proxmox:backup_restore_vms:using_the_cli [2021/06/19 12:48] – created peterproxmox:backup_restore_vms:using_the_cli [2021/06/30 17:57] (current) – [Create a backup] peter
Line 1: Line 1:
 ====== Proxmox - Backup & Restore VMs - Using the CLI ====== ====== Proxmox - Backup & Restore VMs - Using the CLI ======
 +
 +===== Create a backup =====
 +
 +<code bash>
 +cd /var/lib/vz/dump
 +vzdump VM_ID
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  **VM_ID** is the ID shown on GUI Panel.
 +</WRAP>
 +
 +
 +----
 +
 +===== Restore a VM Image (x.lzo) =====
 +
 +<code bash>
 +cd /var/lib/vz/dump
 +qmrestore vzdump-x-x.lzo VM_ID
 +</code>
 +
 +----
 +
 +===== To Restore a Container =====
 +
 +<code bash>
 +pct restore ID --storage {storage_name} ./x.zst
 +</code>
 +
 +----
 +
  
proxmox/backup_restore_vms/using_the_cli.1624106934.txt.gz · Last modified: 2021/06/19 12:48 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki