Branch
Hash :
fca6695c
Author :
Thomas de Grivel
Date :
2025-10-10T14:00:46
bin/backup_home_runj
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 45
#!/bin/sh
HOSTS=
# s.kmx.io
#HOSTS="$HOSTS bim"
HOSTS="$HOSTS reed"
#HOSTS="$HOSTS twice"
# s.kmx.io sparc64
HOSTS="$HOSTS neutron"
#HOSTS="$HOSTS proton"
# kmx.io remote
HOSTS="$HOSTS oaa os dt vuchil vulon vusea vusing"
V=
if [ "x$1" = "x-v" ]; then
V=P
shift
fi
PATHS="$@"
if [ "x$PATHS" = "x" ]; then
PATHS="Documents kmx.io config ports txt c/thodg common-lisp/thodg"
PATHS="$PATHS erlang/thodg"
PATHS="$PATHS ruby/thodg"
fi
run () {
echo "$@"
"$@"
}
cd
#for P in $PATHS; do
# run rsync -a$V --delete-before "$P" s86pro:/sdcard/dx/"$(dirname "$P")/"
#done
for P in $PATHS; do
for HOST in $HOSTS; do
echo echo rsync -a$V --delete-before $P $HOST:$(dirname $P)/ '&&' rsync -a$V --delete-before $P $HOST:$(dirname $P)/
done
done | runj -1 /bin/sh