-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Show live upload speed during backup #1581
Description
I started a backup yesterday and resumed it today. After scanning it seems restic verifies which file are already back-upped. It shows a huge transfer speed of 50Mb/s for these files. When it continues to actually transfer files the current speed is way too high. It shows 20Mb/s for me for example but my system is only sending data with 2Mb/s. The speed also goes down all the time. So I guess the (avg) speed is calculated over the whole transfer time and not the last x seconds for example.
It's just a small/cosmetic issue or maybe even intended. But I think it's not intuitive.
Output of restic version
restic 0.8.1
compiled with go1.9.2 on linux/amd64
How did you run restic exactly?
restic -r sftp: ... followed by repo path, name and local folder to backup ~ in my case.
What backend/server/service did you use to store the repository?
sftp
Expected behavior
I expect to see the real transfer speed.
Actual behavior
I see an inaccurate transfer speed.
Steps to reproduce the behavior
Resume a backup
Do you have any idea what may have caused this?
The speed is probably calculated over the whole transfer time instead let's say the last 5s.
Do you have an idea how to solve the issue?
Calculate the transfer speed based on a smaller time windows.
Did restic help you or made you happy in any way?
nope