blog/sync
Marc Beninca b09ffd7c0f sync
2020-04-12 03:13:28 +02:00

21 lines
482 B
Bash
Executable file

#! /bin/bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
DIRECTORY="$(dirname "${FILE}")"
OUT='output'
function rs {
echo ; echo
echo "${1} @ ${2}"
echo
rsync --verbose --progress \
--archive --checksum --delete-before \
"${DIRECTORY}/${OUT}/" \
"${1}@${2}:${3}/"
}
rs 'user' 'rwx.work' '/ssd/projects/public/rwx.work/blog'
rs 'marc' 'envs.net' 'public_html'
rs 'marc' 'tilde.team' 'public_html'
rs 'marc' 'tildecities.com' 'public_html'
rs 'marc' 'tilde.institute' 'public_html'