1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-26 21:19:47 +01:00

populate: support rsyncing files

This commit is contained in:
tv 2018-04-24 19:54:01 +02:00
parent e89cf20d43
commit 3022582ade

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"
)}