Be consistent with saving/restoring cpo
Move tarball creation into a script
Put template markers in place for last changes to a file
Fill last change template variable