restic/internal/backend/sftp
greatroar 2bdc40e612 Speed up restic init over slow SFTP links
pkg/sftp.Client.MkdirAll(d) does a Stat to determine if d exists and is
a directory, then a recursive call to create the parent, so the calls
for data/?? each take three round trips. Doing a Mkdir first should
eliminate two round trips for 255/256 data directories as well as all
but one of the top-level directories.

Also, we can do all of the calls concurrently. This may reintroduce some
of the Stat calls when multiple goroutines try to create the same
parent, but at the default number of connections, that should not be
much of a problem.
2022-07-30 13:09:08 +02:00
..
config.go sftp: Limit concurrent backend operations 2022-04-09 12:21:38 +02:00
config_test.go sftp: Limit concurrent backend operations 2022-04-09 12:21:38 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
layout_test.go sftp: Limit concurrent backend operations 2022-04-09 12:21:38 +02:00
sftp.go Speed up restic init over slow SFTP links 2022-07-30 13:09:08 +02:00
sftp_test.go all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
sshcmd_test.go Revert "Put host last in SSH command line" 2020-03-08 16:45:33 +01:00