Convert script to use local backup