Add-VBRComputerBackupJob
Short Description
Creates Veeam Agent backup jobs and Veeam Agent backup policies.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRComputerBackupJob -OSPlatform <VBRAgentType> -Type <VBRComputerBackupJobType> -Mode <VBRComputerBackupJobMode> [-Name <String>] [-Description <String>] -BackupObject <Object[]> -BackupType <VBRComputerBackupJobBackupType> [-SelectedFilesOptions <VBRSelectedFilesBackupOptions>] [-SelectedVolumes <IVBRSelectedVolume[]>] [-ExcludedVolumes <VBRWindowsSelectedVolume[]>] [-IncludeUsbDrives] [-DestinationOptions <VBRComputerDestinationOptions>] [-BackupRepository <CBackupRepository>] [-RetentionPolicy <Int32>] [-StorageOptions <VBRStorageOptions>] [-SyntheticFullOptions <VBRFullBackupOptions>] [-ActiveFullOptions <VBRFullBackupOptions>] [-HealthCheckOptions <VBRHealthCheckOptions>] [-CompactFullOptions <VBRFullBackupOptions>] [-NotificationOptions <VBRNotificationOptions>] [-ScriptOptions <VBRJobScriptOptions>] [-EnableDeletedComputerRetention] [-DeletedComputerRetentionPolicy <Int32>] [-EnableApplicationProcessing] [-ApplicationProcessingOptions <VBRApplicationProcessingOptions[]>] [-EnableIndexing] [-IndexingOptions <VBRComputerIndexingOptions[]>] [-EnableSchedule] [-ScheduleOptions <VBRObject>] [-UseSnapshotlessFileLevelBackup] [-BackupCacheOptions <VBRBackupCacheOptions>] [-RetentionType <VBRRetentionType>] [-GFSOptions <VBRComputerGFSOptions>] [-WarningOptions <VBRComputerWarningOptions>] [-SanIntegrationOptions <VBRSanIntegrationOptions>] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates Veeam Agent backup jobs and Veeam Agent backup policies.
To create backup policies, you must specify the protection group with the protected computers that you plan to back up and the target location for storing backups.
To create Veeam Agent backup jobs, you must specify the protection group with the protected computers and the repository for storing backups.
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet to get the protection group. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet to get the repository. - Run the
New-VBRComputerDestinationOptionsCreates the target location settings for backup policies. cmdlet to specify the target location for storing backups.
To enable guest file indexing and application-aware processing, you must first specify the settings for these options.
- Run the
New-VBRApplicationProcessingOptionsCreates application-aware processing settings for Veeam Agent backup jobs. cmdlet to specify application-aware processing settings. - Run the
New-VBRComputerIndexingOptionsCreates indexing settings for Veeam Agent backup jobs. cmdlet to specify guest file system indexing settings.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ActiveFullOptions |
Specifies the schedule for active full backup.
Accepts the |
|
False |
Named |
False |
|
ApplicationProcessingOptions |
Specifies the settings for application-aware processing.
Accepts the |
|
False |
Named |
False |
|
BackupCacheOptions |
Specifies backup cache settings of a Veeam Agent backup job for Microsoft Windows. Note: You can apply backup cache settings for Veeam Agent backup jobs that are targeted at the following types of backup location:
Accepts the |
|
False |
Named |
False |
|
BackupObject |
Specifies an array of protection groups and discovered computers that you want to add to the Veeam Agent backup job.
Accepts the |
|
True |
Named |
False |
|
BackupRepository |
Specifies the target backup location for the Veeam Agent backup job. Note: This parameter is not available for backup policies.
Accepts the |
|
False |
Named |
False |
|
BackupType |
Specifies the scope of data that you want to back up.
|
|
True |
Named |
False |
|
CompactFullOptions |
Specifies the schedule for the compact operation of full backups created by the Veeam Agent backup job.
Veeam Backup & Replication will defragment and compact a full backup per the schedule settings specified in the Note: This parameter is not available for backup policies that Veeam Agent job applies to Linux computers.
Accepts the |
|
False |
Named |
False |
|
DeletedComputerRetentionPolicy |
For the Specifies the period of time in days to keep backup files for machines that have not been backed up for a certain period of time. Veeam Backup & Replication will remove backup files of these computers in case Veeam Agent backup job will not be able to back up these computers when the specified period of time is over. Default: 30 days. |
|
False |
Named |
False |
|
Description |
Specifies the description of the Veeam Agent backup job. |
|
False |
Named |
False |
|
DestinationOptions |
Specifies the target backup location for the protected computers that you want to add to the backup policy. Note: This parameter does not work for Veeam Agent backup jobs.
Accepts the |
|
False |
Named |
False |
|
EnableApplicationProcessing |
Enables application-aware processing for the Veeam Agent backup job. |
|
False |
Named |
False |
|
EnableDeletedComputerRetention |
Enables the option to keep the backup data for machines that have not been backed up for a certain period of time. Veeam Backup & Replication will remove backup files of these computers in case Veeam Agent backup job will not be able to back up these computers for the specified period.
Use the |
|
False |
Named |
False |
|
EnableIndexing |
Enables the guest file system indexing. |
|
False |
Named |
False |
|
EnableSchedule |
Enables the Veeam Agent backup job to run on a regular basis. |
|
False |
Named |
False |
|
ExcludedVolumes |
For volume-level backups. Specifies an array of computer volumes that you want to exclude from backup.
Accepts the |
|
False |
Named |
False |
|
GFSOptions |
Specifies a GFS retention. The cmdlet will create Veeam Agent job with the specified policy.
Accepts the |
|
False |
Named |
False |
|
HealthCheckOptions |
Specifies the health check schedule for the latest restore point. Note: This parameter is not available for backup policies that Veeam Agent job applies to Linux computers.
Accepts the |
|
False |
Named |
False |
|
HighPriority |
Defines that Veeam Backup & Replication will prioritize this job higher than other similar jobs and will allocate resources to it in the first place. |
|
False |
Named |
False |
|
IncludeUsbDrives |
Defines that Veeam Backup & Replication will back up the periodically connected USB drives. Note: You can set this parameter only for the following types of Veeam Agent jobs:
|
|
False |
Named |
False |
|
IndexingOptions |
Specifies indexing scope settings.
Accepts the |
|
False |
Named |
False |
|
Mode |
Specifies the Veeam Agent backup job mode:
|
|
True |
Named |
False |
|
Name |
Specifies the name that you want to assign to the Veeam Agent backup job. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification settings for the Veeam Agent backup job.
Accepts the |
False |
Named |
False |
|
|
OSPlatform |
Specifies the OS of the protected computers:
|
|
True |
Named |
False |
|
RetentionPolicy |
Specifies the retention policy for backups created by the Veeam Agent. |
|
False |
Named |
False |
|
RetentionType |
Specifies a retention type for Veeam Agent jobs managed by the Veeam Backup server. |
|
False |
Named |
False |
|
SanIntegrationOptions |
Specifies storage integration settings for the Veeam Agent jobs.
Accepts the |
|
False |
Named |
False |
|
ScheduleOptions |
Specifies the settings for Veeam Agent job schedule. Accepts the objects returned by the following cmdlets:
|
|
False |
Named |
False |
|
ScriptOptions |
Specifies custom script settings. Veeam Backup & Replication will run pre-job and post-job scripts per these settings. Note: This parameter is not available for backup policies that Veeam Agent job applies to Windows computers.
Accepts the |
False |
Named |
False |
|
|
SelectedFilesOptions |
For file-level backups. Specifies an array of folders with files that you want to back up.
Accepts the |
|
False |
Named |
False |
|
SelectedVolumes |
For volume-level backups. Specifies an array of computer volumes that you want to back up. Accepts the following objects:
|
|
False |
Named |
False |
|
StorageOptions |
Specifies the settings for compression and storage optimization of the target backup repository.
Accepts the |
|
False |
Named |
False |
|
SyntheticFullOptions |
Specifies the schedule for synthetic full backup.
Accepts the |
|
False |
Named |
False |
|
Type |
Specifies the type of the protected computers:
|
|
True |
Named |
False |
|
UseSnapshotlessFileLevelBackup |
Defines that the cmdlet will create the crash-consistent file-level backup without a snapshot. Note: This parameter is available for Linux machines with the file-level backup scope only. |
|
False |
Named |
False |
|
WarningOptions |
Specifies notifications settings for computers processed by Veeam Agent policies. Note: This parameter is not available for computers processed by Veeam Agent backup jobs.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRComputerBackupJob[] object that contains settings of Veeam Agent backup jobs and Veeam Agent backup policies.
Examples
Example 1. Creating Veeam Agent Backup Job for Windows Servers
|
This example shows how to create the Veeam Agent backup job for Windows servers.
Perform the following steps:
|
Example 2. Creating Veeam Agent Backup Job for Linux Workstation
|
This example shows how to create the Veeam Agent backup policy for Linux workstation. A backup job will run on Fridays at 7:00 PM.
Perform the following steps:
|
Example 3. Creating Veeam Agent Backup Job for Failover Cluster
|
This example shows how to create a Veeam Agent backup job for a failover cluster. The job will run with the following settings:
Perform the following steps:
|
Example 4. Creating Veeam Agent Backup Policy for Linux Server
|
This example shows how to create a Veeam Agent backup policy for Linux server. The backup job will create volume-level backups.
Perform the following steps:
|
Example 5. Creating Veeam Agent Backup Job for Windows Servers (Volume-Level Backup)
|
This example shows how to create the Veeam Agent backup job for Windows servers. The backup job will include OS volumes to volume-level backups.
Perform the following steps:
|
Related Commands
Get-VBRProtectionGroupReturns protection groups.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRComputerDestinationOptionsCreates the target location settings for backup policies.New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRLinuxScheduleOptionsCreates the schedule for backup policies for Linux computers.New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.New-VBRApplicationProcessingOptionsCreates application-aware processing settings for Veeam Agent backup jobs.New-VBRLinuxSelectedVolumeDefines the scope of volumes for Veeam Agent backup jobs that back up Linux machines.