feat!: redefine hostname as a required property that maps to --host #256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is backrest's first breaking change. It adds host as a required property in the config. Because host changed to an immutable property in this PR any value set in existing configs will be reset to allow users to explicitly pick a value they are happy with when they next open the backrest UI.
This warrants a breaking change because it changes the way backups are managed, Backrest will now check that snapshots under management have the expected plan ID and that they came from the same backrest installation. This paves the way for multi-host management with backrest (e.g. multiple hosts backing up to a single repository).
I expect this to be a 1 time breaking change and the transition to the
1.0.0
release of backrest feels like a good time to do this.A follow up PR will implement logic to migrate existing snapshots by tagging them for management by the first backrest installation to index them and with a matching plan in its config.
The call to action is surfaced to users by