Add-VBRNASBackupJob
Short Description
Creates file backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRNASBackupJob -BackupObject <VBRNASBackupObject[]> [-EnableFileACLChangeTracking] [-IncludeSymbolicLinkContent] [-Name <String>] [-Description <String>] -ShortTermBackupRepository <CBackupRepository> [-ShortTermRetentionType <VBRUnstructuredBackupShortTermRetentionType>] [-ShortTermRetentionPeriod <Int32>] [-LongTermRetentionType <VBRUnstructuredBackupLongTermRetentionType>] [-LongTermBackupRepository <IRepository>] [-LongTermRetentionPeriod <Int32>] [-LongTermArchivalOptions <VBRUnstructuredBackupArchivalOptions>] [-EnableLongTermRetention] [-EnableCopyMode] [-SecondaryTarget <VBRUnstructuredBackupSecondaryTarget[]>] [-VersionRetentionOptions <VBRUnstructuredBackupVersionRetentionOptions>] [-StorageOptions <VBRStorageOptions>] [-HealthCheckOptions <VBRFullBackupOptions>] [-NotificationOptions <VBRNotificationOptions>] [-ScriptOptions <VBRJobScriptOptions>] [-ScheduleOptions <VBRServerScheduleOptions>] [-Force] [-HighPriority] [-TargetBackup <VBRUnstructuredBackup>] [<CommonParameters>] |
Detailed Description
This cmdlet creates file backup jobs.
Run the Start-VBRJobStarts a backup or replication job. cmdlet to start a created job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupObject |
Specifies folders and files. The cmdlet will add these folders and files to the file backup job.
Accepts the |
|
True |
Named |
False |
|
Description |
Specifies a description of the file backup job. The cmdlet will create the file backup job with the specified description. |
|
False |
Named |
False |
|
EnableCopyMode |
Defines that the cmdlet will keep the copy of the data stored in the backup repository in the long-term archive repository. |
|
False |
Named |
False |
|
EnableFileACLChangeTracking |
Defines that Veeam Backup & Replication will process attributes and permissions for folders. Files that are added to these folders will inherit permissions of the folders. If you enable this option, Veeam Backup & Replication will back up folder ACL attributes and permissions. Otherwise, they will not be backed up. |
|
False |
Named |
False |
|
EnableLongTermRetention |
Defines that the cmdlet will keep files on long-term archive repository. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add a file backup without showing warnings or errors in the PowerShell console. |
|
False |
Named |
False |
|
HealthCheckOptions |
Specifies the healthcheck schedule. The cmdlet will create a file backup job with this healthcheck schedule.
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 |
|
IncludeSymbolicLinkContent |
Defines that Veeam Backup & Replication will backup the contents of SMB symbolic links. |
|
False |
Named |
False |
|
LongTermArchivalOptions |
Specifies the retention policy for file versions that are located on the long-term archive repository. The cmdlet will create file backup jobs with the specified retention policy.
Accepts the |
|
False |
Named |
False |
|
LongTermBackupRepository |
Specifies the archive repository. The cmdlet will add this repository as the long-term archive storage.
Accepts the
|
|
False |
Named |
False |
|
LongTermRetentionPeriod |
For the Specifies the period of time to keep data on the long-term archive repository. When this period is passed, Veeam Backup & Replication will delete this data from the archive repository. |
|
False |
Named |
False |
|
LongTermRetentionType |
Specifies a retention policy for the long-term archive repository. You can set the retention policy to either of the following periods:
Use the |
|
False |
Named |
False |
|
Name |
Specifies a name of the file backup job. The cmdlet will create the file backup job with the specified name. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification options. The cmdlet will create file backup jobs with these notification options.
Accepts the |
False |
Named |
False |
|
|
ScheduleOptions |
Specifies schedule options. The cmdlet will create file backup jobs with these schedule options.
Accepts the |
|
False |
Named |
False |
|
ScriptOptions |
Specifies pre-job and post-job script options. The cmdlet will create file backup jobs with these script options.
Accepts the |
False |
Named |
False |
|
|
SecondaryTarget |
Specifies the backup repository. The cmdlet will add this repository as the secondary repository to a file backup job.
Accepts the |
|
False |
Named |
False |
|
ShortTermBackupRepository |
Specifies the backup repository. The cmdlet will add this repository as the short-term backup storage.
Accepts the |
|
True |
Named |
False |
|
ShortTermRetentionPeriod |
For the Specifies the period of time to keep data on the short-term backup repository. When this period is passed, Veeam Backup & Replication will move data to the long-term archive repository. |
|
False |
Named |
False |
|
ShortTermRetentionType |
Specifies a retention policy for the short-term backup repository. You can set the retention policy to either of the following periods:
Use the |
|
False |
Named |
False |
|
StorageOptions |
Specifies storage optimization settings. The cmdlet will create a file backup job with these settings.
Accepts the |
|
False |
Named |
False |
|
TargetBackup |
For backup job mapping. Specifies a backup chain that you want to map to a job.
Accepts the |
False |
Named |
False |
|
|
VersionRetentionOptions |
Specifies the settings of version-based retention for backup and archive repositories. The cmdlet will apply these settings to the file backup job.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRNASBackupJob object that contains settings of fileshare backup jobs.
Examples
Example 1. Creating File Backup Job
|
This example shows how to create a file backup job with the following settings:
Perform the following steps:
|
Example 2. Creating File Backup Job with Long-Term Repository
|
This example shows how to create a file backup job. The job will be created with the following settings:
Perform the following steps:
|
Related Commands
Get-VBRUnstructuredServerReturns unstructured data sources added to the inventory.New-VBRNASBackupJobObjectDefines settings of files and folders and enterprise NAS system that will be added to the file backup job.Get-VBRBackupRepositoryReturns a list of backup repositories.Start-VBRJobStarts a backup or replication job.