One thing that might be useful is copying this script itself to the dump directory - so that if any diagnostics are missing or corrupted we have a copy of the script to see what went wrong. (In principle you can work it out from the installed packages, but there might be edge cases like failed package upgrades.)