backup and remove the old repository setup at upgrade