file tree archive and restore