feat: add download link to create a zip archive of restored files

This commit is contained in:
Gareth
2024-05-05 04:11:23 -07:00
parent 756e64a200
commit a75a5c2297
4 changed files with 95 additions and 1 deletions

View File

@@ -24,7 +24,12 @@ func NewOneoffRestoreTask(repoID, planID string, flowID int64, at time.Time, sna
RunAt: at,
ProtoOp: &v1.Operation{
SnapshotId: snapshotID,
Op: &v1.Operation_OperationRestore{},
Op: &v1.Operation_OperationRestore{
OperationRestore: &v1.OperationRestore{
Path: path,
Target: target,
},
},
},
},
Do: func(ctx context.Context, st ScheduledTask, taskRunner TaskRunner) error {