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

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

Merged
merged 2 commits into from Sep 19, 2020

Conversation

MichaelEischer
Copy link
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

@MichaelEischer MichaelEischer changed the title Init copy chunker init: Add --copy-chunker-parameters option Sep 19, 2020
cmd/restic/cmd_init.go Outdated Show resolved Hide resolved
@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
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.

None yet

3 participants