Commit d944d8a2 authored by godog's avatar godog

repository_restic: enable cache for 'snapshots' command

parent 24bfaddb
Pipeline #4926 failed with stages
in 12 seconds
......@@ -187,8 +187,9 @@ func (r *resticRepository) getSnapshotID(ctx context.Context, rctx RuntimeContex
// Legacy compatibility: query restic using the dataset ID.
data, err := rctx.Shell().Output(ctx, fmt.Sprintf(
"%s snapshots --no-cache --no-lock --json %s",
"%s snapshots %s --no-lock --json %s",
r.resticCmd(),
r.cacheArgs(ds),
resticBackupTags(backup, ds),
))
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment