sync
This commit is contained in:
parent
70eb10edf0
commit
b09ffd7c0f
1 changed files with 21 additions and 0 deletions
21
sync
Executable file
21
sync
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#! /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'
|
Loading…
Reference in a new issue