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
Unified Repository Design #4926
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4926 +/- ##
==========================================
- Coverage 41.29% 41.27% -0.02%
==========================================
Files 211 211
Lines 18443 18445 +2
==========================================
- Hits 7616 7614 -2
- Misses 10254 10257 +3
- Partials 573 574 +1
Continue to review full report at Codecov.
|
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
design/unified-repo-and-kopia-integration/unified-repo-and-kopia-integration.md
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
Please add what to do when deleting backup containing snapshot that maybe a parent snapshot for another velero backup. Since both restic and kopia are incremental by nature, subsequent snapshot only work if parent snapshot exists. |
|
||
## CR Example | ||
Below sample files demonstrate complete CRs with all the changes mentioned above: | ||
- BackupRepository CR: https://gist.github.com/Lyndon-Li/f38ad69dd8c4785c046cd7ed0ef2b6ed#file-backup-repository-sample-yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed an issue, that in the spec of the backup repository CR there is still resticIdentifier
will that be renamed or how does kopia repo use this field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As our current discussion, the kopia path uses storageConfig (from BSL) instead of resticIdentifier/repoIdentifier, then the resticIdentifier/repoIdentifier are for Restic only. In this way, we could keep them as is since they are Restic specific.
On the other hand, if we want to make resticIdentifier/repoIdentifier generic for other purposes, we can change the name. For now, we don't have this requirement.
@kaovilai Don't why I cannot reply your comments in place. Then let me make the answer here. Both Kopia and Restic don't have the aforementioned snapshot chain problem, even though they support incremental snapshot/backup. The reason is, the incremental mechanism that is used by Kopia/Restic is file level and each snapshot contains a full view of its object data though the object data itself is shared across snapshots. Below are the details:
|
Thanks @Lyndon-Li |
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
Yonghui joined the velero team earlier this year. He has been leading the effort for kopia integration, and delivered the comprehensive comparison report for kopia .vs. restic https://docs.google.com/document/d/1BMLuRzEpYWYE-Ci_eLg8gWbjDv4DSyqj/edit and the detailed design for using kopia as the unified repository: vmware-tanzu#4926 Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This PR add the initial design document for Unified Repository & Kopia Integration