proxmox:backup_restore_vms:using_the_cli
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
proxmox:backup_restore_vms:using_the_cli [2021/06/19 12:48] – created peter | proxmox: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 / | ||
+ | vzdump VM_ID | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restore a VM Image (x.lzo) ===== | ||
+ | |||
+ | <code bash> | ||
+ | cd / | ||
+ | qmrestore vzdump-x-x.lzo VM_ID | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== To Restore a Container ===== | ||
+ | |||
+ | <code bash> | ||
+ | pct restore ID --storage {storage_name} ./x.zst | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
proxmox/backup_restore_vms/using_the_cli.1624106934.txt.gz · Last modified: 2021/06/19 12:48 by peter