Skip to content

Commit

Permalink
fix: restora should not init repos added manually e.g. without the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Dec 11, 2023
1 parent 595b6ff commit 68b50e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/orchestrator/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68b50e1

Please sign in to comment.