Hash :
6a9a1e50
Author :
Thomas de Grivel
Date :
2024-06-30T11:38:15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#!/bin/sh
HOSTS=
# s.kmx.io
HOSTS="$HOSTS s.kmx.io"
#HOSTS="$HOSTS bim reed twice"
# s.kmx.io sparc64
HOSTS="$HOSTS neutron"
HOSTS="$HOSTS proton"
# kmx.io remote
HOSTS="$HOSTS oaa os vuchil vulon vusea vusing"
V=
if [ "x$1" = "x-v" ]; then
V=P
shift
fi
PATHS="$@"
if [ "x$PATHS" = "x" ]; then
PATHS="Documents Pictures c/thodg common-lisp/thodg config"
PATHS="$PATHS erlang/thodg kmx.io mathematics patrice ports"
PATHS="$PATHS ruby/thodg txt/thodg"
fi
run () {
echo "$@"
"$@"
}
cd
#for P in $PATHS; do
# run rsync -a$V --delete-before "$P" s86pro:/sdcard/dx/"$(dirname "$P")/"
#done
for HOST in $HOSTS; do
for P in $PATHS; do
run rsync -a$V --delete-before "$P" "$HOST":"$(dirname "$P")/"
done
done