blog/sync.sh

29 lines
714 B
Bash
Raw Normal View History

2020-04-12 01:13:28 +00:00
#! /bin/bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
DIRECTORY="$(dirname "${FILE}")"
OUT='output'
function rs {
echo ; echo
2020-04-12 01:21:22 +00:00
echo "${2} @ ${3} : ${1}"
2020-04-12 01:13:28 +00:00
echo
rsync --verbose --progress \
2020-04-12 01:21:22 +00:00
--rsh "ssh -p ${1}" \
2020-04-12 01:13:28 +00:00
--archive --checksum --delete-before \
"${DIRECTORY}/${OUT}/" \
2020-04-12 01:21:22 +00:00
"${2}@${3}:${4}/"
2020-04-12 01:13:28 +00:00
}
2020-04-12 01:21:22 +00:00
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'
2020-04-12 03:10:19 +00:00
# rs 22 'mspe' 'fr.tild3.org' 'public_html'
2020-04-12 01:21:22 +00:00
# rs 22 'marc' 'radiofreqs.space' 'public_html'
rs 9022 'marc' 'remotes.club' 'web'
2020-04-12 03:27:14 +00:00
rs 22 'marc' 'thunix.net' 'public_html'
2020-04-12 03:32:13 +00:00
rs 22 'mspe' 'tilde.club' 'public_html'
rs 22 'marc' 'tilde.town' 'public_html'