Implement an inplace backup functionality for util.change_location