@@ -248,7 +248,7 @@ func (c *Ctl) waitForRestore(rinlist string, waitFor time.Duration) error {
248248
249249// Restore starts restore and returns the name of op
250250func (c * Ctl ) Restore (bcpName string , options []string ) (string , error ) {
251- command := append ([]string {"pbm" , "restore" , bcpName , "-o" , "json" }, options ... )
251+ command := append ([]string {"pbm" , "restore" , bcpName , "-o" , "json" , "--yes" }, options ... )
252252 o , err := c .RunCmd (command ... )
253253 if err != nil {
254254 return "" , errors .Wrap (err , "run meta" )
@@ -275,12 +275,12 @@ func (c *Ctl) ReplayOplog(a, b time.Time) error {
275275}
276276
277277func (c * Ctl ) PITRestore (t time.Time ) error {
278- _ , err := c .RunCmd ("pbm" , "restore" , "--time" , t .Format ("2006-01-02T15:04:05" ))
278+ _ , err := c .RunCmd ("pbm" , "restore" , "--time" , t .Format ("2006-01-02T15:04:05" ), "--yes" )
279279 return err
280280}
281281
282282func (c * Ctl ) PITRestoreClusterTime (t , i uint32 ) error {
283- _ , err := c .RunCmd ("pbm" , "restore" , "--time" , fmt .Sprintf ("%d,%d" , t , i ))
283+ _ , err := c .RunCmd ("pbm" , "restore" , "--time" , fmt .Sprintf ("%d,%d" , t , i ), "--yes" )
284284 return err
285285}
286286
0 commit comments