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.
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
Various Backup and restore improvements #174
Various Backup and restore improvements #174
Changes from 23 commits
b395c15
0689fb6
50d4d65
82fc1c5
8ba8c66
6775243
5a75a38
536765d
15e777c
4ed8e25
537376d
8613569
8796aa2
65a997d
095f73d
2d7977a
2b09a1b
495ca59
5dcacaf
513d1ae
ce929c9
c7dd6d1
5640a38
6fd4d7a
4826b33
610bc2a
0a94328
ae8f292
ed07dd3
b1b8d83
fd73670
e1b6d9d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 assumes that the entire contents of the TAR file are contained in a path of that length. Otherwise it would be ambiguous which path within the TAR file contains the archive. I think it would be better if we took a pathname within the TAR file that contains the archive. Also, it is possible that the archive and journal are in different directories, but I'm not sure how this parameter would account for that.
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 value of
stripLevels
is transparently passed totar
as--strip-components
option. The typical use case is that the source tarball contains only one archive directory (including the journal).Currently, an external journal directory is not supported.
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.
Why the name "stream" instead of "archive"?
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 was the name originally chosen. I'm not sure about the reason. Effectively
stream
is atar.gz
of NuoDB archive which is ready to be downloaded.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.
s -> z
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.
does the database have to be
RUNNING
? Can you restore a single archive with a DB that is down? I know that it virtually becomes adatabase
restore, but will the flag work?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.
The database doesn't have to be running, however, the admin layer should.
nuorestore
just sets a flag in KV store which indicates that restore needs to be performed on the next database restart.