Skip to content

Directory and file attribute "hidden" not restored #2075

@KeithGrant

Description

@KeithGrant

Output of restic version

restic 0.9.3 compiled with go1.11.1 on windows/amd64
running in Windows 10

How did you run restic exactly?

.\restic restore --repo D:\test\ --target '/restore' latest --host XXX --password-file password.txt

No environmental variables were used in this test.

What backend/server/service did you use to store the repository?

Local file system - no backend server

Expected behavior

All files and directories are restored along with their attribute settings. Specifically - the hidden attribute.

Actual behavior

All files and directories were restored perfectly except the hidden attribute was lost. For example a .git directory will be fully restored but was visible in the restore. This behavior is consistent across multiple scenarios.

Steps to reproduce the behavior

Create a Windows file and directory marked hidden. Backup and restore then and the hidden attribute is unset.

Do you have any idea what may have caused this?

No

Do you have an idea how to solve the issue?

I cannot tell if the hidden attribute is lost in the backup phase or the restore phase.

Did restic help you or made you happy in any way?

I think restic is a great tool.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions