X-Git-Url: https://hackdaworld.org/gitweb/?p=scripts%2Fscripts.git;a=blobdiff_plain;f=sync.sh;fp=sync.sh;h=0000000000000000000000000000000000000000;hp=7df03969ec7b30e537cf8e24175d26aa38fb841d;hb=82b142aa2d3c809bde0bfdf003890aa0097b232d;hpb=c3711e092b0b5bed6b27a439dd5a80c1ac89c52c diff --git a/sync.sh b/sync.sh deleted file mode 100755 index 7df0396..0000000 --- a/sync.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# sync files: SRC <-> local - -# source host / user / dir -SRC="hdw" ; SRCUSER="hackbard" ; SRCDIR="/home/hackbard" -# destination dir -DSTDIR="/mnt/bunker/hackbard" -# use ssh -export RSYNC_RSH="ssh" -# rsync cmd -RSYNC="rsync -aovz" -# directories to sync -DIRS="docs/mosc/ docs/dvb/ docs/kernel/ docs/nagra/" - -# check for local existence, continue rsync if true -for DIR in $DIRS; do - if [ -d $DIR ] ; then - echo "syncing $DIR from host $SRC, directory $SRCDIR ..." - $RSYNC ${SRC}:${SRCDIR}/$DIR ${DSTDIR}/$DIR - fi -done - -echo "done."