Creating restore script