This commit is contained in:
Marc Beninca 2020-04-14 02:01:30 +02:00
parent 1c8a1c36b8
commit 1a6efd73d6

View file

@ -5,14 +5,13 @@ DIRECTORY="$(dirname "${FILE}")"
OUT='output'
function rs {
echo ; echo
echo "${2} @ ${3} : ${1}"
echo
rsync --verbose --progress \
--rsh "ssh -o 'LogLevel Error' -p ${1}" \
--archive --checksum --delete-before \
"${DIRECTORY}/${OUT}/" \
"${2}@${3}:${4}/"
"${2}@${3}:${4}/" \
> /dev/null
}