Description
When the increment chain reach the KEEP_LAST value, the code of increment_flatten is executed, The code work as espected, but in some scenarios when the filesystem is not to fast, the size of the image is not the correct, because the task of merge and info run too quickly.
To Reproduce
Do an incremental backup of a VM and do more backups than the KEEP_LAST value configured.
The rsync server must be one server with slow disk response.
Expected behavior
when we do an incremental backup of a VM and we do more backups than the KEEP_LAST value configured, the rsync server have slow disk response. The value for size computed must be the right one.
Description When the increment chain reach the KEEP_LAST value, the code of increment_flatten is executed, The code work as espected, but in some scenarios when the filesystem is not to fast, the size of the image is not the correct, because the task of merge and info run too quickly.
To Reproduce Do an incremental backup of a VM and do more backups than the KEEP_LAST value configured. The rsync server must be one server with slow disk response.
Expected behavior when we do an incremental backup of a VM and we do more backups than the KEEP_LAST value configured, the rsync server have slow disk response. The value for size computed must be the right one.
Details
Additional context Add any other context about the problem here.
Progress Status
I sorted the problem doing sleep inside the script: