Skip to content

Commit c940f3d

Browse files
committed
Add --fallback-enabled option for cli
1 parent 081faf4 commit c940f3d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmd/pbm/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ func (app *pbmApp) buildRestoreCmd() *cobra.Command {
808808
&restoreOptions.ts, "ts", "",
809809
"MongoDB cluster time to restore to. In <T,I> format (e.g. 1682093090,9). External backups only!",
810810
)
811+
restoreCmd.Flags().BoolVar(
812+
&restoreOptions.fallback, "fallback-enabled", true,
813+
"Disables fallback sync feature when doing physical restore. Enabled by default.",
814+
)
811815

812816
restoreCmd.Flags().StringVar(&restoreOptions.rsMap, RSMappingFlag, "", RSMappingDoc)
813817
_ = viper.BindPFlag(RSMappingFlag, restoreCmd.Flags().Lookup(RSMappingFlag))

cmd/pbm/restore.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type restoreOpts struct {
5252
rsMap string
5353
conf string
5454
ts string
55+
fallback bool
5556

5657
numParallelColls int32
5758
numInsertionWorkers int32

0 commit comments

Comments
 (0)