tar: Move the main code into a make_backup function.