Forrest logo
back to the qm tool

qm-create:tldr:bdf41

qm-create: Replace an existing machine (requires archiving it).
$ qm create ${100} --archive ${path-to-backup_file-tar} --force 1
try on your machine

This command is using the "qm" command to create a new virtual machine (VM) backup in Proxmox Virtual Environment (PVE).

Here's a breakdown of the command and its parameters:

  • qm create: This is the initial part of the command to create a new VM backup using the qm command.

  • ${100}: This represents the VM ID or number (example: 100) for which the backup is being created. The actual VM ID should be provided in place of ${100}.

  • --archive: This is an option to specify that the backup should be archived.

  • ${path-to-backup_file-tar}: This is the path to the location where the backup file (in .tar format) will be created. The actual file path should be provided in place of ${path-to-backup_file-tar}.

  • --force 1: This option indicates that the backup creation should proceed even if there is an existing backup file with the same name. The value 1 indicates that the force option is enabled.

In summary, this command creates a new backup of a virtual machine with the specified ID, archives it, and saves it at the specified file path. If there is already a backup file with the same name, it will still proceed with the creation of the new backup.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the qm tool