You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pgo/cmd/restore.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,12 @@ var restoreCmd = &cobra.Command{
48
48
fmt.Println("Error: You must specify the --to-cluster flag.")
49
49
os.Exit(2)
50
50
}
51
+
/**
51
52
if RestoreOpts == "" {
52
53
fmt.Println("Error: You must specify the --restore-opts flag.")
53
54
os.Exit(2)
54
55
}
56
+
*/
55
57
restore(args)
56
58
}
57
59
@@ -62,7 +64,7 @@ func init() {
62
64
RootCmd.AddCommand(restoreCmd)
63
65
64
66
restoreCmd.Flags().StringVarP(&ToCluster, "to-cluster", "", "", "The name of the new cluster to restore to.")
65
-
restoreCmd.Flags().StringVarP(&RestoreOpts, "restore-opts", "", "full", "The options for the restore.")
67
+
restoreCmd.Flags().StringVarP(&RestoreOpts, "restore-opts", "", "", "The options for the restore.")
66
68
restoreCmd.Flags().StringVarP(&PITRTarget, "pitr-target", "", "", "The PITR target, being a PostgreSQL timestamp such as '2018-08-13 11:25:42.582117-04'.")
0 commit comments