Backing up and restoring text files