--- title: "Compare-VBRLinuxGuestItemsAttributes" 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." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/compare-vbrlinuxguestitemsattributes.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Guest OS File Recovery > Compare-VBRLinuxGuestItemsAttributes" dateModified: "2026-10-21" --- # 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 -Item [] ``` ## 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-VBRLinuxGuestProductionMachine`](connect-vbrlinuxguestproductionmachine.md) cmdlet. ::: ## 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-VBRLinuxGuestItem 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-VBRLinuxFileRestore cmdlet.

VBRLinuxFlrObject

True

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## 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 ::: example ### 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-VBRBackup`](get-vbrbackup.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$backup` variable. 2. Run the [`Get-VBRRestorePoint`](get-vbrrestorepoint.md) cmdlet. Set the `$backup` variable as the `Backup` parameter value. Save the result to the `$restorepoint` variable. 3. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$server` variable. 4. Run the [`Start-VBRLinuxFileRestore`](start-vbrlinuxfilerestore.md) 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-VBRLinuxGuestProductionMachine`](connect-vbrlinuxguestproductionmachine.md) cmdlet. Set the `$session` variable as the `LinuxFlrObject` parameter value. 6. Run the [`Get-VBRLinuxGuestItem`](get-vbrlinuxguestitem.md) 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. ::: ## Related Commands - [`Connect-VBRLinuxGuestProductionMachine`](connect-vbrlinuxguestproductionmachine.md) - [`Get-VBRBackup`](get-vbrbackup.md) - [`Get-VBRLinuxGuestItem`](get-vbrlinuxguestitem.md) - [`Get-VBRRestorePoint`](get-vbrrestorepoint.md) - [`Get-VBRServer`](get-vbrserver.md) - [`Start-VBRLinuxFileRestore`](start-vbrlinuxfilerestore.md)