Add Restic read concurrency setting
This commit is contained in:
@@ -121,6 +121,9 @@ func (r *Runner) TestPassword(ctx context.Context, repo model.Repository, passwo
|
||||
|
||||
func (r *Runner) Backup(ctx context.Context, repo model.Repository, job model.Job, sources []string, progress ProgressCallback) (Summary, error) {
|
||||
args := []string{"backup", "--json", "--compression", job.Compression}
|
||||
if job.ReadConcurrency > 0 {
|
||||
args = append(args, "--read-concurrency", fmt.Sprint(job.ReadConcurrency))
|
||||
}
|
||||
for _, tag := range append([]string{"urbm", "job:" + job.ID}, job.Tags...) {
|
||||
args = append(args, "--tag", tag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user