Open wspatgithub opened 9 months ago
Did you run borg extract
as root
?
root is required to change user or group away from the current user/group.
Hi Thomas,
thanks for that hint. Indeed, after I run borg extract from the root user, everything works as expected. Maybe I didn't read the doc's carefully enough.
Thanks Wolfgang
Not sure the docs point that out, but this is how chown/chgrp works on UNIX / Linux / ... in general.
Just imagine you could create a suid binary owned by your user and then you could chown that to root. :-)
Should borg display and error and/or exit if the --numeric-ids option is used and the app doesn't have the permissions needed to set the correct ids?
@tantalum borg silently ignores any chown/chgrp failure due to missing permissions since ever (assuming that you will be happy with just the file contents in such a usage scenario, when invoking borg as non-root user).
if you need chown/chgrp (or anything else only possible as root), you need to invoke borg as root.
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Question
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.2.6
Operating system (distribution) and version.
Synology OS
Hardware / network configuration, and filesystems used.
How much data is handled by borg?
just a few for testing
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
I can create the repo, doing the backup and after that, find the files I've backup'ed in the repo. With the detailed list command I can see, that Owner and Goup name is stored inside the repo:
After the restore with borg extract I find all my files belonging to admin / users. I tried extract with and without the parameter --numeric-ids, the result is still the same.
What do I have to do to change this behavior?
Additional Info: Files to be backed up are on my Synology NAS A, the repo is on my Synology NAS B.
Thanks Wolfgang
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
Include any warning/errors/backtraces from the system logs