We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081b0bb commit 8cb6480Copy full SHA for 8cb6480
1 file changed
pitr/agent/internal/handler/backup.go
@@ -45,6 +45,10 @@ func Backup(ctx *fiber.Ctx) error {
45
return fmt.Errorf(efmt, in.Username, len(in.Password), in.DBName, err)
46
}
47
48
+ if err := pkg.OG.Init(in.DnBackupPath); err != nil {
49
+ return fmt.Errorf("init instance failed, err: %w", err)
50
+ }
51
+
52
// try to add backup instance
53
if err := pkg.OG.AddInstance(in.DnBackupPath, in.Instance); err != nil && !errors.Is(err, cons.InstanceAlreadyExist) {
54
return fmt.Errorf("add instance failed, err wrap: %w", err)
0 commit comments