fix script to take backup