18 lines
245 B
Bash
Executable file
18 lines
245 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
## args
|
|
|
|
if [ $# -ge 1 ] ; then target_ssh_handle=$1 && shift ; else target_ssh_handle="gs-monitoring" ; fi
|
|
|
|
|
|
## exec
|
|
|
|
rsync \
|
|
--rsh=ssh \
|
|
--recursive \
|
|
--update \
|
|
--delete \
|
|
build/ \
|
|
${target_ssh_handle}:/opt/heimdall
|
|
|