use rsync instead of scp
This commit is contained in:
parent
c6fc1470c4
commit
75ca3ba822
1 changed files with 2 additions and 2 deletions
4
publish
4
publish
|
|
@ -27,7 +27,7 @@ source .publish
|
|||
|
||||
cd $orig_pwd
|
||||
if [[ $# -eq 0 ]]; then
|
||||
$prefix scp -r * "$publish_host":"${publish_dir}${subdir}"
|
||||
$prefix rsync -aKv * "$publish_host":"${publish_dir}${subdir}"
|
||||
else
|
||||
$prefix scp -r "$@" "$publish_host":"${publish_dir}${subdir}"
|
||||
$prefix rsync -aKv "$@" "$publish_host":"${publish_dir}${subdir}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue