restic version
restic 0.9.3 compiled with go1.11.1 on linux/amd64
echo "test" | restic backup --stdin
Azure
Restic log shows "processed 1 file, 5 B in 0:00"
Restic log shows "processed 1 file, 0 B in 0:00"
The "filesize" seems to never be stored if the file is from stdin
Internally store processed filesize for stdin
Oh, interesting, thanks for the report. Although your command line is slightly wrong, I suspect you meant echo test | restic backup --stdin
?
Oops, I edited the command, indeed meant restic backup
This was interesting. When restic saves a bunch of files, it first stats all of them and computes the sum of the file sizes to get the number of bytes that need to be processed. At the end of the run, that number is printed.
For backups read from stdin, restic does not know how many bytes will be read, so it just uses zero. That's what's printed at the end. #2138 will keep track of the number of bytes processed and print that at the end instead.