2 # Mirror directory tree from remote to local server, keeping the path.
6 echo "Need server and directory as arguments."
11 path_package=/tmp/delete.tar
16 ssh plom@"${server}" "cd \"${dir}\" && tar cf ${path_package} ."
17 scp plom@"${server}":"${path_package}" "${path_package}"
20 tar xf "${path_package}"
23 ssh plom@"${server}" rm "${path_package}"