Is there on Linux a program that can calculate how much data a program would produce?
For example, if I would like to take backup of my MySQL database I would usually do
mysqldump > dumpfile.sql
Instead I would like to redirect to /dev/null
but calculate how much disk-space would have been used, like
mysqldump | fancy_space_calc_program
Output:
123456789 Bytes would have been used
Note, the MySQL backup is just an example. I'm very well aware of how I could estimate the size before-hand, so please no comments about that.