From 7a125ec3c802dd96fcc7f1d5197d95811e1ab3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?= Date: Fri, 19 Jun 2026 14:05:00 +0200 Subject: [PATCH] PMM-7 Test of backup bug. --- agent/runner/jobs/mongodb_restore_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/runner/jobs/mongodb_restore_job.go b/agent/runner/jobs/mongodb_restore_job.go index 5597fa0488..b790a9f4a8 100644 --- a/agent/runner/jobs/mongodb_restore_job.go +++ b/agent/runner/jobs/mongodb_restore_job.go @@ -225,7 +225,7 @@ func (j *MongoDBRestoreJob) startRestore(ctx context.Context, backupName string) if j.pitrTimestamp.Unix() == 0 { err = execPBMCommand(ctx, j.dbURL, &restoreOutput, "restore", backupName) } else { - err = execPBMCommand(ctx, j.dbURL, &restoreOutput, "restore", "--time="+j.pitrTimestamp.Format("2006-01-02T15:04:05")) + err = execPBMCommand(ctx, j.dbURL, &restoreOutput, "restore", fmt.Sprintf(`--time=%s`, j.pitrTimestamp.Format("2006-01-02T15:04:05"))) } if err != nil {