Skip to content

Backup & Restore "IsInherited" Property on Windows #5427

@davideverall

Description

@davideverall

Output of restic version

PS C:\Program Files (x86)\restic> ./restic version
restic 0.18.0 compiled with go1.24.1 on windows/amd64

What should restic do differently? Which functionality do you think we should add?

The addition of backing up SecurityDescriptors on Windows #4708 is fantastic, however I have noticed that restic does not restore the IsInherited property on files/directories.

Example:

Output prior to backup

PS C:\Windows\system32> $ACL = Get-Acl "E:\restic_test_root\level1\level2\level3"
$ACL.Access

FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : BUILTIN\Administrators
IsInherited       : True
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None

FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : NT AUTHORITY\SYSTEM
IsInherited       : True
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None

Output after restore

PS C:\Program Files (x86)\restic> $ACL = Get-Acl "E:\restic_test_root\level1\level2\level3"
$ACL.Access

FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : BUILTIN\Administrators
IsInherited       : False
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None

FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : NT AUTHORITY\SYSTEM
IsInherited       : False
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None


What are you trying to do? What problem would this solve?

Having the original Inheritance properties is important when restoring, to retain the flow of permissions on child objects.

Did restic help you today? Did it make you happy in any way?

Always. Your hard work maintaining this excellent project is well appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions