blog/sync.sh

66 lines
1.6 KiB
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'
2020-06-12 10:45:32 +00:00
function rs { echo; echo "${2} @ ${3} : ${1}"; ssh -o 'LogLevel Error' -p ${1} "${2}@${3}" df -h .;}
2020-04-12 01:13:28 +00:00
function rs {
2020-04-12 01:21:22 +00:00
echo "${2} @ ${3} : ${1}"
2020-04-12 01:13:28 +00:00
rsync --verbose --progress \
2020-04-12 03:44:29 +00:00
--rsh "ssh -o 'LogLevel Error' -p ${1}" \
2020-04-12 01:13:28 +00:00
--archive --checksum --delete-before \
"${DIRECTORY}/${OUT}/" \
2020-04-14 00:01:30 +00:00
"${2}@${3}:${4}/" \
> /dev/null
2020-04-12 01:13:28 +00:00
}
2020-04-12 01:21:22 +00:00
rs 22 'marc' 'envs.net' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'envs.net' 'public_html'
2020-04-12 01:21:22 +00:00
rs 22 'marc' 'tilde.team' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'tilde.team' 'public_html'
2020-04-12 01:21:22 +00:00
rs 22 'marc' 'tilde.institute' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'tilde.institute' 'public_html'
2020-04-12 09:15:34 +00:00
rs 22 'mspe' 'fr.tild3.org' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'marc' 'radiofreqs.space' 'public_html'
rs 22 'mspe' 'radiofreqs.space' 'public_html'
2020-04-12 01:21:22 +00:00
rs 9022 'marc' 'remotes.club' 'web'
2020-04-12 06:59:47 +00:00
rs 9022 'mspe' 'remotes.club' 'web'
2020-06-12 10:45:32 +00:00
# ~
2020-04-12 03:27:14 +00:00
2020-04-14 01:48:19 +00:00
rs 22 'mspe' 'theasylum.team' 'public_html'
2020-04-12 03:27:14 +00:00
rs 22 'marc' 'thunix.net' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'thunix.net' 'public_html'
2020-04-13 04:41:28 +00:00
rs 22 'mspe' 'summit.tildex.com' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'marcbeninca' 'tilde.club' 'public_html'
2020-04-12 03:32:13 +00:00
rs 22 'mspe' 'tilde.club' 'public_html'
2020-04-12 06:59:47 +00:00
2020-04-12 03:32:13 +00:00
rs 22 'marc' 'tilde.town' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'tilde.town' 'public_html'
2020-06-12 10:45:32 +00:00
rs 22 'marc' 'yourtilde.com' 'public_html'
rs 22 'mspe' 'yourtilde.com' 'public_html'
2020-04-12 03:39:48 +00:00
rs 22 'marc' 'tilde.pw' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'tilde.pw' 'public_html'
2020-04-12 03:39:48 +00:00
rs 22 'marc' 'aussies.space' 'public_html'
2020-04-12 06:59:47 +00:00
rs 22 'mspe' 'aussies.space' 'public_html'
2020-04-12 03:39:48 +00:00
rs 22 'mspe' 'squiggle.city' 'public_html'
2020-04-13 05:47:03 +00:00
2020-06-12 10:45:32 +00:00
# http
rs 22 'mspe' 'ctrl-c.club' 'public_html'
2020-04-13 05:47:03 +00:00
rs 22 'mspe' 'rw.rs' 'public_html'