INNER CODE UNIT · Go
restoreFinishCommand
percona/percona-backup-mongodb · cmd/pbm-agent/main.go:162
func restoreFinishCommand() *cobra.Command {
var (
configPath string
rsName string
nodeName string
dbConfigPath string
)
restoreFinishCmd := &cobra.Command{
Use: "restore-finish [restore_name]",
Short: "Finish external restore (after the agent's restart)",
SilenceUsage: true,
Args: cobra.ExactArgs(1),
PreRunE: func(cmd *cobra.Command, args []string) error {
if configPath == "" {
return errors.New("required flag \"config\" not set")
}
if rsName == "" {