Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve_owner option, with owner header. #177

Open
petersilva opened this issue Mar 31, 2019 · 1 comment
Open

preserve_owner option, with owner header. #177

petersilva opened this issue Mar 31, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers NewUseCase needed to address a use case, we can't yet support.

Comments

@petersilva
Copy link
Contributor

People have talked about mirroring directories as root, instead of the end-user that wants the data. For the root user case, one likely wants to restore the ownership on the destination. This would be modelled on the preserve_mode & preserve_time options, adding a fields to the message:

owner: <value>
group: <value>

would need to put a try/except around this, because it will fail if not root. or just let if fail and bomb, and force people to put preserve_ownship off in their configs? Likely just leave it
off by default, and have root user explicitly add it when they want it.

@petersilva petersilva added enhancement New feature or request good first issue Good for newcomers NewUseCase needed to address a use case, we can't yet support. labels Mar 31, 2019
@petersilva
Copy link
Contributor Author

outline:

  • config.py ... add ownerCopy flag option. (perhaps a check if we are root or somehow special?)
  • sarracenia/_init_.py ... Message/ fromFileInfo ... add if ownerCopy... then set fields msg['owner'] ... msg['group'] ...
  • in sarracenia/flow/_init_.py looks for 'timeCopy' and add an ownerCopy stanza....
    (two places: download and sender...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers NewUseCase needed to address a use case, we can't yet support.
Projects
None yet
Development

No branches or pull requests

1 participant