net: truncate output file when using dump backend