When I try to assign this value to the RESTIC_REPOSITORY variable , it throws an error when running restic
export RESTIC_REPOSITORY=b2:<bucket_name>:<b2_folder> -o b2.connections=50
I tried quoting it too but doesn’t work.Is there a way I can pass this value?
You can’t. RESTIC_REPOSITORY
in in place of specifying the value of the -r
option. It does not allow you to pass other arbitrary options.
And, there is no benefit to passing a value higher than 2 anyway, since the restic uploader only uses two threads currently.
1 Like
Is there a way to increase the restic thread count (via some parameter or something) ?
I don’t believe this is currently possible. It’s been requested a few times on the forum. @fd0 is this the right feature request?
I am assuming parallelism=thread count and so the thread count is 40 and not 2? Please correct me if I am wrong
Right, apparently this is not the correct issue. I believe this is the relevant line:
SaveTreeConcurrency uint
}
// ApplyDefaults returns a copy of o with the default options set for all unset
// fields.
func (o Options) ApplyDefaults() Options {
if o.FileReadConcurrency == 0 {
// two is a sweet spot for almost all situations. We've done some
// experiments documented here:
// https://github.com/borgbackup/borg/issues/3500
o.FileReadConcurrency = 2
}
if o.SaveBlobConcurrency == 0 {
o.SaveBlobConcurrency = uint(runtime.NumCPU())
}
if o.SaveTreeConcurrency == 0 {
// use a relatively high concurrency here, having multiple SaveTree
// workers is cheap
o.SaveTreeConcurrency = o.SaveBlobConcurrency * 20
764287
March 18, 2019, 7:43am
7
Just wanted to add that @fd0 explained this about 2 days ago. See this thread for more information.
1 Like