Skip to content

Also support restoring ownership by name #3572

@gsauthof

Description

@gsauthof

Output of restic version

restic 0.12.0 compiled with go1.16.6 on linux/amd64

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

It would be great, if restic restore would support an option for restoring ownership information from the symbolic user/group names instead of just restoring the uid/gid.

Also, it would be extra great, if restic would warn, by default, if the uid/gids of restored files map to different user/group names on the target system than on the backed up system.

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

I was doing a disaster recovery of a system, i.e. I installed it from scratch, installed and configured some services via a playbook and restored some data file with restic. It turns out that many system users such as 'nginx' have dynamically assigned uid/gids on modern Linux distributions. Thus, they likely change if the system is re-deployed from scratch.

Since restic stores/restored raw uids/gids, I had to chown the restored files which was quite tedious.

See also https://forum.restic.net/t/restore-with-numeric-uid-or-with-username/3811/2 for a similar description of this use case.

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

Restic recently helped me backing up some old Intel Core 1 host with just 2 GB RAM with reasonable speed which was nice.

Metadata

Metadata

Assignees

No one assigned

    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