borg icon indicating copy to clipboard operation
borg copied to clipboard

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

Open RonnyPfannschmidt opened this issue 9 years ago • 2 comments

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)

RonnyPfannschmidt avatar Nov 20 '16 17:11 RonnyPfannschmidt

Workaround:

  • even when doing local backups, use wanteduser@localhost:repo.
  • optionally, use BORG_RSH additionally to avoid everything going via ssh.

ThomasWaldmann avatar Nov 20 '16 17:11 ThomasWaldmann

As there was no work on this, a workaround exists and we are close before RC phase, I removed this from this milestone.

ThomasWaldmann avatar Jul 04 '17 22:07 ThomasWaldmann