-
Notifications
You must be signed in to change notification settings - Fork 185
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
docs: backup and restore specification #1610
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1610 +/- ##
==========================================
+ Coverage 84.30% 84.37% +0.06%
==========================================
Files 120 120
Lines 5449 5460 +11
==========================================
+ Hits 4594 4607 +13
+ Misses 608 606 -2
Partials 247 247 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Terry Howe <[email protected]>
a67cd77
to
7e33f88
Compare
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.
This feature is somewhat confusing. I understand the motivation, but it does not accurately reflect backup/restore. A possible suggestion is to use dump
/publish
instead
@@ -0,0 +1,107 @@ | |||
# Backup and Restore Commands |
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.
Should there be a problem statement that is included within this proposal that illustrates why this feature is needed?
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.
Added.
docs/proposals/backup-restore.md
Outdated
|
||
This document describes how the backup and restore commands will work and how the feature will be rolled out. | ||
The proposal is to create the feature as a minimum viable product and follow that up with non breaking features to the commands. | ||
The initial implementation will be the easiest implementation that is useful. |
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.
This is a bit confusing.
@@ -0,0 +1,107 @@ | |||
# Backup and Restore Commands | |||
|
|||
This document describes how the backup and restore commands will work and how the feature will be rolled out. |
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.
What are we backing up and restoring?
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.
Added something in a new paragraph above this.
docs/proposals/backup-restore.md
Outdated
|
||
### oras backup | ||
|
||
The backup command will initially only support reading a list of files from the command line and writing to a directory: |
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.
List of files or list or artifacts?
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.
Fixed
Initially, the restore command will only support reading a directory and writing to a registry: | ||
|
||
```bash | ||
oras restore --input ./mirror localhost:15000/my-mirror |
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.
Will there be flags to support authentication and TLS for the remote registry?
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.
Yes, all the normal registry flags. I added some text about that.
|
||
## Compressed Tar File Support | ||
|
||
After the command supports directory write and read, support will be added for write and read to a compressed tar file. |
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.
Is this trying to state that future enhancements after the initial release will add support for compressed archives?
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.
Yes.
Co-authored-by: Andrew Block <[email protected]> Signed-off-by: Terry Howe <[email protected]>
Co-authored-by: Andrew Block <[email protected]> Signed-off-by: Terry Howe <[email protected]>
If you think of it reading and writing tgz files, I think backup/restore works pretty well. Names are hard, the equivalent docker command would be save/load. |
Co-authored-by: Andrew Block <[email protected]> Signed-off-by: Terry Howe <[email protected]>
Co-authored-by: Andrew Block <[email protected]> Signed-off-by: Terry Howe <[email protected]>
Signed-off-by: Terry Howe <[email protected]>
What this PR does / why we need it:
Specification for the way the
oras backup
andoras restore
commands will work.Which issue(s) this PR fixes:
Partial: #1366