Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBackup progress miscalculated when compression is enabled #997
Comments
marmarek
added
bug
C: core
P: minor
labels
May 14, 2015
marmarek
added this to the Release 3.0 milestone
May 14, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
v6ak
May 21, 2015
Maybe adding some process that counts all the bytes and stores the value somewhere would help. I mean something like this:
tar -c | watch-progress /tmp/progressfile | gzip
As far as I remember, dd can do this (it prints statistics when USR1 signal is received), but writing a custom simple proxy might be easier.
(I don't care about this issue much, so I won't send a patch. I just wanted to share an idea of a hopefully easy fix.)
v6ak
commented
May 21, 2015
|
Maybe adding some process that counts all the bytes and stores the value somewhere would help. I mean something like this:
As far as I remember, (I don't care about this issue much, so I won't send a patch. I just wanted to share an idea of a hopefully easy fix.) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 21, 2015
Member
Backup tool monitor all the process involved in backup creation, so when
changed from "tar -c --use-compression-program=gzip" to "tar | something
| gzip" it means two additional processes to watch. I'm not saying it
isn't possible, just more work than it may look as. And while this has
"minor" priority...
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Backup tool monitor all the process involved in backup creation, so when Best Regards, |
marmarek
modified the milestones:
Release 3.1,
Release 3.0
May 27, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jun 3, 2015
Member
This seems very minor, IMHO. I would be surprised if many people even notice this, and among those who do notice it, I would be surprised if any were bothered by it. All I observed is that my backups seem to finish sooner than expected, which is actually rather nice. :P
|
This seems very minor, IMHO. I would be surprised if many people even notice this, and among those who do notice it, I would be surprised if any were bothered by it. All I observed is that my backups seem to finish sooner than expected, which is actually rather nice. :P |
marmarek
modified the milestones:
Release 3.1,
Release 3.1 updates
Feb 8, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Apr 14, 2017
Member
@andrewdavidwong Confirmed issue still arises in 3.2 milestone, but it is, as you say, minor in extreme
|
@andrewdavidwong Confirmed issue still arises in 3.2 milestone, but it is, as you say, minor in extreme |
marmarek commentedMay 13, 2015
Backup progress shows progress as "size of output written"/"total size of selected VMs". When compression is enabled, this is obviously wrong, because at the end "size of output written" is not the same as original size.
This may be not easy to fix (while preserving frequent enough progress updates), because the first step applies the compression (tar -cz...) and we don't have direct progress reporting there. So the most obvious fix would mean that progress would be updated only when going to the next VM.