blog/sync
Marc Beninca 77a242d05b port
2020-04-12 03:21:22 +02:00

24 lines
610 B
Bash
Executable file

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