Compare-VBRLinuxGuestItemsAttributes

Short Description

Compares attributes of Linux-based or Unix-based files and folders from a backup with attributes of original files and folders.

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Compare-VBRLinuxGuestItemsAttributes -LinuxFlrObject <VBRLinuxFlrObject> -Item <VBRFLRFsItem> [<CommonParameters>]

Detailed Description

This cmdlet compares attributes of Linux-based or Unix-based files and folders from a backup with attributes of original files and folders.

When Veeam Backup & Replication compares files, it compares their attributes. When Veeam Backup & Replication compares folders, it compares folder attributes and file attributes inside the folder recursively. Once a file with changed attributes is found, Veeam Backup & Replication stops comparing files and marks the folder as changed. If you further browse the folder in the compared state, Veeam Backup & Replication continues comparing non-compared files and folders. Veeam Backup & Replication compares the following attributes: Date Modified, Owner, Group, Permissions, Size (only for files).

You cannot compare attributes of a volume (a root item).

Note

Before comparing attributes, you must establish connection with the original machine using the Connect-VBRLinuxGuestProductionMachineConnects to the Linux-based or Unix-based machine where original files and folders reside. cmdlet.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Item

Specifies the file or folder whose attributes you want to compare.

Accepts the VBRFLRFsItem object. To create this object, run the Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files. cmdlet.

VBRFLRFsItem

True

Named

True (ByPropertyName, ByValue)

LinuxFlrObject

Specifies a restore session of Linux-based or Unix-based guest OS files. The cmdlet will use this session to compare attributes.

Note: The restore session must be started within the current PowerShell session.

Accepts the VBRLinuxFlrObject object. To create this object, run the Start-VBRLinuxFileRestoreStarts a restore session of Linux-based or Unix-based guest OS files. cmdlet.

VBRLinuxFlrObject

True

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 VBRLinuxGuestItemAttributesView object that contains attributes of the compared file or folder from the backup and from the original machine.

Examples

Comparing Attributes of Files and Folders from Backup with Attributes of Original Files and Folders

This example shows how to compare attributes of a file from the UbuntuSrv backup with attributes of the original file.

$backup = Get-VBRBackup -Name "UbuntuSrv"

$restorepoint = Get-VBRRestorePoint -Backup $backup

$server = Get-VBRServer -Name "LinSrv05"

$session = Start-VBRLinuxFileRestore -RestorePoint $restorepoint -MountServer $server

Connect-VBRLinuxGuestProductionMachine -LinuxFlrObject $session

$file = Get-VBRLinuxGuestItem -LinuxFlrObject $session -Path "/home/administrator/mydir/report.txt"

Compare-VBRLinuxGuestItemsAttributes -LinuxFlrObject $session -Item $file

Perform the following steps:

  1. Run the Get-VBRBackupReturns backups. cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
  2. Run the Get-VBRRestorePointReturns restore points. cmdlet. Set the $backup variable as the Backup parameter value. Save the result to the $restorepoint variable.
  3. Run the Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  4. Run the Start-VBRLinuxFileRestoreStarts a restore session of Linux-based or Unix-based guest OS files. cmdlet. Set the $restorepoint variable as the RestorePoint parameter value. Set the $server variable as the MountServer parameter value. Save the result to the $session variable.
  5. Run the Connect-VBRLinuxGuestProductionMachineConnects to the Linux-based or Unix-based machine where original files and folders reside. cmdlet. Set the $session variable as the LinuxFlrObject parameter value.
  6. Run the Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files. cmdlet. Set the $session variable as the LinuxFlrObject parameter value. Specify the Path parameter value. Save the result to the $file variable.
  7. Run the Compare-VBRLinuxGuestItemsAttributes cmdlet. Set the $session variable as the LinuxFlrObject parameter value. Set the $file variable as the Item parameter value.

Page updated 2026-10-21

Page content applies to build 13.2.0.193