Skip to content

Instantly share code, notes, and snippets.

@AkashRajvanshi
Created February 13, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkashRajvanshi/a008339f37169c6cbbb835f22522669d to your computer and use it in GitHub Desktop.
Save AkashRajvanshi/a008339f37169c6cbbb835f22522669d to your computer and use it in GitHub Desktop.
# You can directly backup your vm from gui ( but if you want cli method -> )
# To create a backup
$ cd /var/lib/vz/dump
$ vzdump VM_ID # ( ID Show on GUI Pannel )
# To Restore a VM Image ( x.lzo )
$ cd /var/lib/vz/dump
# To Restore a VM
$ qmrestore vzdump-x-x.lzo VM_ID
# To restore a Container
$ pct restore ID --storage {storage_name} ./x.zst
# Note - You can also setup Proxmox Backup Server ( To Regurlarly Backup your VMS on Remote Storage - https://www.proxmox.com/en/proxmox-backup-server )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment