From 68b50e1eb5a2ebd861c869f71f49d196cb5214f8 Mon Sep 17 00:00:00 2001 From: Gareth Date: Mon, 11 Dec 2023 06:28:28 -0800 Subject: [PATCH] fix: restora should not init repos added manually e.g. without the UI --- internal/orchestrator/repo.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/orchestrator/repo.go b/internal/orchestrator/repo.go index 41e8bee1..3236e8ea 100644 --- a/internal/orchestrator/repo.go +++ b/internal/orchestrator/repo.go @@ -53,10 +53,6 @@ func (r *RepoOrchestrator) SnapshotsForPlan(ctx context.Context, plan *v1.Plan) func (r *RepoOrchestrator) Backup(ctx context.Context, plan *v1.Plan, progressCallback func(event *restic.BackupProgressEntry)) (*restic.BackupProgressEntry, error) { zap.L().Debug("repo orchestrator starting backup", zap.String("repo", r.repoConfig.Id)) - if err := r.repo.Init(ctx); err != nil { - return nil, fmt.Errorf("failed to init repo: %w", err) - } - snapshots, err := r.SnapshotsForPlan(ctx, plan) if err != nil { return nil, fmt.Errorf("failed to get snapshots for plan: %w", err)