populate: support rsyncing files

This commit is contained in:
tv 2018-04-24 19:54:01 +02:00
parent e89cf20d43
commit 3022582ade
1 changed files with 5 additions and 1 deletions

View File

@ -132,10 +132,14 @@ populate_file() {(
file_target=$target_user@$target_host:$target_path/$file_name
fi
if test -d "$file_path"; then
file_path=$file_path/
fi
rsync \
-vFrlptD \
--delete-excluded \
"$file_path"/ \
"$file_path" \
-e "ssh -o ControlPersist=no -p $target_port" \
"$file_target"
)}