fixed bash syntax error (comments after 'then')
only backup config.php when php stops