also enable transfer of explorer data back to the server

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-04 22:49:20 +01:00
commit 1850042126
2 changed files with 11 additions and 5 deletions

View file

@ -49,9 +49,13 @@ ssh root@${__cdist_target_host} \
\"${__cdist_remote_cache_bin}/cdist-explorer-coordinator\" \
\"${__cdist_remote_explorer_dir}\" \"${__cdist_remote_cache_explorer}\""
# Ensure local destination directory exists
mkdir -p "$(__cdist_cache_host)/$__cdist_name_explorer"
# Transfer back all results
# scp -r "root@${__cdist_target_host}:${__cdist_remote_dir}"
# Transfer back all results - FIXME: Add 2 level cache, so old version is kept until success
scp -r "root@${__cdist_target_host}:${__cdist_remote_cache_explorer}/*" \
"$(__cdist_cache_host)/$__cdist_name_explorer"
exit 0