Creating Veeam Recovery Media with Command Line Interface
In addition to creating the Veeam Recovery Media with the Create Recovery Media wizard, you can also use the command line interface to create the recovery image and save it as an ISO file. To create the Veeam Recovery Media, use a command with the following syntax:
"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso /f:<location>\<name>.iso |
where:
- <location> — path to the folder in which the recovery image ISO file will be created. All folders that are mentioned in the path must be created in advance. Names of folders in the path must not contain spaces.
- <name> — name of the resulted ISO file. The file name must not contain spaces.
NOTE |
Consider the following:
|
You can use the last exit code to verify if the backup job has completed successfully. To check the last exit code, use the %ERRORLEVEL% variable in cmd.exe. Veeam Agent can provide the following exit codes:
- 0 — recovery image successfully created
- 1 — the create recovery image operation failed
Example of Use
The example below creates an ISO file with the VeeamRE name in the E:\Veeam\RecoveryImage folder.
"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /createrecoverymediaiso /f:E:\Veeam\RecoveryImage\VeeamRE.iso |