-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
select backup engine in Backup() and ignore engines in RestoreFromBackup() #16428
Changes from 16 commits
675922a
b4fb33d
b2b83f5
1369c4a
5f12132
2738f7f
a73bf44
a08b8e1
f4f6451
4c70b4e
4613bf5
2f174cc
d4a53a9
631bb65
f3b9e83
41cd68e
c187e36
b2a540e
ff3dc51
a6dff4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -300,6 +300,7 @@ Flags: | |||||
--restore-to-timestamp string (init incremental restore parameter) if set, run a point in time recovery that restores up to the given timestamp, if possible. Given timestamp in RFC3339 format. Example: '2006-01-02T15:04:05Z07:00' | ||||||
--restore_concurrency int (init restore parameter) how many concurrent files to restore at once (default 4) | ||||||
--restore_from_backup (init restore parameter) will check BackupStorage for a recent backup at startup and start there | ||||||
--restore_from_backup_allowed_engines strings if present will filter out any backups taken with engines not included in the list | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New flags should use dashes, not underscores. Sorry, we haven't got around to deprecating and replacing the old-style flags, so we have this pitfall where you follow what looks like the standard pattern, but it isn't. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For future reference, the vitess-bot checklist is helpful here. It tells you what is expected under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aha, thanks @deepthi! I will update it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
--restore_from_backup_ts string (init restore parameter) if set, restore the latest backup taken at or before this timestamp. Example: '2021-04-29.133050' | ||||||
--retain_online_ddl_tables duration How long should vttablet keep an old migrated table before purging it (default 24h0m0s) | ||||||
--s3_backup_aws_endpoint string endpoint of the S3 backend (region must be provided). | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package vtctlbackup | ||
|
||
import ( | ||
"testing" | ||
|
||
backup "vitess.io/vitess/go/test/endtoend/backup/vtctlbackup" | ||
) | ||
|
||
func TestBackupEngineSelector(t *testing.T) { | ||
defer setDefaultCompressionFlag() | ||
backup.TestBackupEngineSelector(t) | ||
} | ||
|
||
func TestRestoreAllowedBackupEngines(t *testing.T) { | ||
defer setDefaultCompressionFlag() | ||
backup.TestRestoreAllowedBackupEngines(t) | ||
} |
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.