Combined both scripts into one, adding backup/restore switch