Add --numeric-owner support. #147

Closed
opened 2019-03-05 10:10:28 +00:00 by Wieke · 6 comments

Hi

Currently borgmatic does not support the --numeric-owner argument. Borg has this option for the create, diff and extract actions. It forces borg to maintain the numeric value of owning groups/users rather than trying to match them by name, which can be useful under certain circumstances.

Briefly discussed on reddit here.

Thanks,

Wieke

Hi Currently borgmatic does not support the `--numeric-owner` argument. Borg has this option for the `create`, `diff` and `extract` actions. It forces borg to maintain the numeric value of owning groups/users rather than trying to match them by name, which can be useful under certain circumstances. Briefly discussed on reddit [here](https://www.reddit.com/r/selfhosted/comments/awgy89/how_to_best_back_up_my_nextcloud_data/ehsxtvv/?context=3). Thanks, Wieke
Owner

Seems straight-forward. Thanks for filing!

Seems straight-forward. Thanks for filing!
witten added the
design finalized
label 2019-03-05 16:55:26 +00:00
Owner

Done! Just released as part of borgmatic 1.2.18. Please let me know if you find any other options or features lacking. Thanks again for reporting.

Done! Just released as part of borgmatic 1.2.18. Please let me know if you find any other options or features lacking. Thanks again for reporting.
Owner

In terms of using this, just add the following to the location: section in your borgmatic config:

    numeric_owner: true

This applies to both creating and extracting archives.

In terms of using this, just add the following to the `location:` section in your borgmatic config: ```yaml numeric_owner: true ``` This applies to both creating and extracting archives.
Author

Damn that was quick, I'll give it a try this evening. And thanks, being able to use borgmatic is going to save me so much hassle.

Damn that was quick, I'll give it a try this evening. And thanks, being able to use borgmatic is going to save me so much hassle.
Author

It works, I just successfully backed up and restored an lxc container using borgmatic.

(And for good measure I'm also backing up /etc so my borgmatic configuration is safe.)

It works, I just successfully backed up and restored an lxc container using borgmatic. (And for good measure I'm also backing up /etc so my borgmatic configuration is safe.)
Owner

Awesome, glad to hear it!

Awesome, glad to hear it!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#147
No description provided.