Skip to content

as root on posix try to retain repository owner uid/umask #1869

@RonnyPfannschmidt

Description

@RonnyPfannschmidt

when running borg create as root (for example to back up all home folders)
then borg will create the new files owned as root and brick the repository for use by the original owner because the next cache sync will fail to read the created segments

as current workaround i have to run chown -R ronny:ronny backups after each backup

in order to elevate that, borg should try to use the owning uid/gid of the backup folder if it is allowed to
(so at least root an do correct backups)

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