Skip to content

init: Add --copy-chunker-parameters option#2928

Merged
fd0 merged 2 commits intorestic:masterfrom
MichaelEischer:init-copy-chunker
Sep 19, 2020
Merged

init: Add --copy-chunker-parameters option#2928
fd0 merged 2 commits intorestic:masterfrom
MichaelEischer:init-copy-chunker

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

What does this PR change? What problem does it solve?

It adds a --copy-chunker-parameters option to the init command to support copying the chunker parameters to a new repository.

This allows creating multiple repositories with identical chunker parameters which is required for working deduplication when copying snapshots between different repositories. See the documentation change for more details.

Was the change discussed in an issue or in the forum before?

The problem was discussed in #2606 but not this solution.

Checklist

  • I have read the Contribution Guidelines
  • I have enabled maintainer edits for this PR
  • I have added tests for all changes in this PR
  • I have added documentation for the changes (in the manual)
  • I've extended the changelog entry for the copy command [ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

Comment thread changelog/unreleased/issue-323 Outdated
@MichaelEischer MichaelEischer changed the title Init copy chunker init: Add --copy-chunker-parameters option Sep 19, 2020
Comment thread cmd/restic/cmd_init.go Outdated
@MichaelEischer MichaelEischer force-pushed the init-copy-chunker branch 4 times, most recently from e9b754b to 0e65b29 Compare September 19, 2020 14:40
This allows creating multiple repositories with identical chunker
parameters which is required for working deduplication when copying
snapshots between different repositories.
Copy link
Copy Markdown
Member

@fd0 fd0 left a comment

Choose a reason for hiding this comment

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

LGTM!

@fd0 fd0 merged commit 6ff0082 into restic:master Sep 19, 2020
@MichaelEischer MichaelEischer deleted the init-copy-chunker branch September 19, 2020 15:43
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