Help Center
Choose product document...
Veeam Endpoint Backup FREE 1.5
User Guide

Performing Backup with Command Line Interface

In addition to running scheduled backup jobs and performing ad-hoc backups from the Veeam Endpoint Backup Tray Agent or Control Panel, you can create backups with the command line interface. For example, you can use commands for running a backup job in custom scripts to set up more detailed backup schedule than the daily schedule configured with the Control Panel.

You can run a backup job from the command line interface to create the following types of backups:

  • Full or incremental backup (regular restore point in the backup chain)
  • Standalone full backup
  • Backup to another location

Before you create a backup from the command line interface, check the following prerequisites:

  • The backup job must be configured.
  • You cannot run a backup job from the command line interface if a backup task of any type is currently running. This includes a scheduled backup, standalone full backup or ad-hoc incremental backup.

Creating Incremental Backups

To perform an incremental backup, use a command with the following syntax:

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /backup

Creating Standalone Full Backups

To create a standalone full backup, use a command with the following syntax:

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /standalone

Performing Backup to Another Location

To create a standalone full backup to a different location than a location that is specified in the backup job settings, use a command with the following syntax:

"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /standalone <location>

where <location> is a path to a folder in which the backup should be created.

Performing Backup with Command Line Interface Important!

If you specify a network shared folder as a target location for standalone full backup, Veeam Endpoint Backup will use credentials that are specified in the backup job settings to connect to the shared folder. You cannot specify custom credentials in the command.

Monitoring Backup Job Status

When you start a backup job from the command line interface, it runs automatically in the background. You can view information about the backup job session or the created restore point in the Control Panel. To learn more, see Viewing Statistics in Control Panel.

You can also 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 Endpoint Backup can provide the following exit codes:

  • 0 — backup successfully created
  • -1 — backup job failed to start or completed with error
  • 5 — backup job is currently running and cannot be started from the command line interface

Related Topics

Veeam Large Logo

User Guide

Veeam Backup & Replication Documentation

Veeam ONE Documentation

Veeam Management Pack Documentation