2 # Mirror directory tree from remote to local server, keeping the path.
6 expect_n_args 2 "(server, directory)" "$@"
9 path_package=/tmp/delete.tar
14 ssh plom@"${server}" "cd \"${dir}\" && tar cf ${path_package} ."
15 scp plom@"${server}":"${path_package}" "${path_package}"
18 tar xf "${path_package}"
21 ssh plom@"${server}" rm "${path_package}"