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

Issue #79 - Complete or replace default options #98

Closed

Conversation

Lonnytunes
Copy link
Collaborator

Add the --replace-defaults option to backup and restoration commands to control the behavior of the --extra-options option.

@Lonnytunes Lonnytunes self-assigned this Feb 21, 2024
@Lonnytunes Lonnytunes force-pushed the issue-79-complete-or-replace-default-options branch 2 times, most recently from 9e248a7 to 71129f7 Compare February 21, 2024 15:58
If you always need to use the same custom options when backing up, you can
define them as default options in the bundle configuration file:
By default, those custom options will be added to the [default options](./configuration#default-binary-options)
defined in the bundle configuration file. Use `--replace-defaults` (`r`) if you
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be --override-options

I don't know what is better 🤷

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with with @Lonnytunes, "options" is a too generic word, may be --replace-default-options

Comment on lines 79 to 81
Whether the `--replace-defaults` option is used or not and whether default
options are defined in the configuration file or not, `--extra-options` option
value will always override default options from the bundle.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this sentence? are you sure about it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum ok I think I see what you mean. I understand why this operate like this (because I know the code behind it), but It's not easy to understand.. :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Backupper and Restorer could have 2 properties: $defaultOptions and $extraOptions ?

@Lonnytunes Lonnytunes force-pushed the issue-79-complete-or-replace-default-options branch from 71129f7 to e7c9507 Compare February 22, 2024 15:03
@Lonnytunes Lonnytunes force-pushed the issue-79-complete-or-replace-default-options branch from e7c9507 to c3ee9d3 Compare February 22, 2024 15:06
@Lonnytunes
Copy link
Collaborator Author

After our discussion IRL and the changes I've made on the code, I prefer to close this PR and create a new one.

@Lonnytunes Lonnytunes closed this Feb 22, 2024
@Lonnytunes Lonnytunes deleted the issue-79-complete-or-replace-default-options branch February 22, 2024 15:18
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