Skip to content

create: implement --stdin-mode, --stdin-user and --stdin-group, #5333#5462

Merged
ThomasWaldmann merged 1 commit intoborgbackup:masterfrom
schors:master
Nov 1, 2020
Merged

create: implement --stdin-mode, --stdin-user and --stdin-group, #5333#5462
ThomasWaldmann merged 1 commit intoborgbackup:masterfrom
schors:master

Conversation

@schors
Copy link
Contributor

@schors schors commented Nov 1, 2020

--stdin-mode, --stdin-user and --stdin-group options added
File mode forces to regular file with other values from the option --stdin-mode. Default mode is 0o100660.
Error occurs if given user or group do not exists. Default user and group values are taken from system uid/gid 0

@schors
Copy link
Contributor Author

schors commented Nov 1, 2020

Previous PR #5437

@codecov-io
Copy link

codecov-io commented Nov 1, 2020

Codecov Report

Merging #5462 into master will decrease coverage by 0.14%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5462      +/-   ##
==========================================
- Coverage   83.54%   83.40%   -0.15%     
==========================================
  Files          37       37              
  Lines        9957     9973      +16     
  Branches     1656     1659       +3     
==========================================
- Hits         8319     8318       -1     
- Misses       1155     1166      +11     
- Partials      483      489       +6     
Impacted Files Coverage Δ
src/borg/archive.py 82.36% <42.85%> (-0.29%) ⬇️
src/borg/archiver.py 81.31% <91.66%> (+0.39%) ⬆️
src/borg/constants.py 100.00% <100.00%> (ø)
src/borg/platform/__init__.py 72.00% <0.00%> (-12.00%) ⬇️
src/borg/platform/xattr.py 82.53% <0.00%> (-6.35%) ⬇️
src/borg/xattr.py 48.83% <0.00%> (-3.49%) ⬇️
src/borg/platform/base.py 77.58% <0.00%> (-3.45%) ⬇️
src/borg/helpers/misc.py 77.02% <0.00%> (-2.03%) ⬇️
src/borg/helpers/parseformat.py 89.00% <0.00%> (-0.17%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aee10b7...c0504c0. Read the comment docs.

@ThomasWaldmann ThomasWaldmann merged commit 5f23ff6 into borgbackup:master Nov 1, 2020
@ThomasWaldmann
Copy link
Member

Thanks for the PR! Looks like non-critical to backport to 1.1-maint branch, do you want to do that?

@schors
Copy link
Contributor Author

schors commented Nov 1, 2020

Yes I do

ThomasWaldmann added a commit that referenced this pull request Nov 2, 2020
create: backport implementation --stdin-mode, --stdin-user and --stdin-group, #5462
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants