borgbackup / borgbackup/borg

directory permissions broken after extraction if single file is extracted

Open
#1,751 19 comments 1 reaction 0 assignees View on GitHub
cmd: extract
Dominant language
Python
Stars
13.7k
Forks
875
Avg merge
11h 15m
Merged PRs (30d)
192

Description

Hello Borg-Team,

I have problems with the extract-function. Had to backup with sudo because of file permissions (f. e. backing up the /usr/local/bin-folder). The directory-permissions changed from `drwx r-x r-x` (original file, also in archive) to `drwx --- ---` (created directory at extraction time).

I used the command `sudo borg extract repo::archive usr/local/bin/file` to restore a single file.

Is there something wrong in my usage of the extraction-tool or is this a bug?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.