keep track of the amount of bytes written in the dump path; similar to
what's already done in the load path