Commit c566e8ee authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

adjustments for increased verbosity and to keep backups of checksum

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.
files


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5159
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 48918ae9
......@@ -31,7 +31,7 @@
TUN_INTERFACE=tun0
# approx. 80% of 256 kBit/second
BWLIMIT=32
BWLIMIT=20
EXCLUDE="--exclude='.lock'"
BFO_BASEDIR=/media/BFO_archive
LSDF_BASEDIR=\
......@@ -97,17 +97,24 @@ fi
# keychain related
source $HOME/.keychain/$HOSTNAME-sh
SSHCMD="/usr/bin/ssh -i $HOME/.ssh/BFOLSDFoper"
# transfer data
for i in ${!DATADIRS[*]}
do
# copy data (compressed)
${LOGGER} -i -p user.info "${LOGINFO}\
${RSYNC} -q -z -a --protocol=29 --bwlimit ${BWLIMIT} ${EXCLUDE} \
${RSYNC} -v -z -a --protocol=29 --bwlimit ${BWLIMIT} ${EXCLUDE} \
-e \"${SSHCMD}\" \
--backup --suffix=$(date +'%Y%m%d%H%M') \
${EXCLUDE_PATTERNS[$i]} ${BFO_BASEDIR}/${DATADIRS[$i]} \
${LSDF_BASEDIR}/${DATADIRS[$i]}"
${RSYNC} -q -z -a --protocol=29 --bwlimit ${BWLIMIT} ${EXCLUDE} \
set -o pipefail
${RSYNC} -v -z -a --protocol=29 --bwlimit ${BWLIMIT} ${EXCLUDE} \
-e "${SSHCMD}" \
--backup --suffix=$(date +'%Y%m%d%H%M') \
${EXCLUDE_PATTERNS[$i]} ${BFO_BASEDIR}/${DATADIRS[$i]} \
${LSDF_BASEDIR}/${DATADIRS[$i]}
${LSDF_BASEDIR}/${DATADIRS[$i]} \
|& ${LOGGER} -i -p user.info -t "csback ${LOGINFO}" -s
# write status to logfile
if [ $? -eq 0 ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment