sync.sh
This commit is contained in:
parent
9be8675b44
commit
0a5d0a3807
1 changed files with 0 additions and 0 deletions
23
sync.sh
Executable file
23
sync.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#! /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 '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'
|
Loading…
Add table
Add a link
Reference in a new issue