Commit 2d1a624e authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

introduced for _working dir path_

parent 91539ec2
......@@ -4,28 +4,29 @@
## settings
##
# initial path
bpath=/mnt/oc_stor_userdata
optfile=/tsm/ocnode/owncloud.opt
wpath=/tsm/ocnode # working dir path
bpath=/mnt/oc_stor_userdata # basepath of data to be backed up
optfile=$wpath/owncloud.opt # path and name of dsm.opt file
# number of parallel jobs
numjobs=25
chunknum=$(expr $numjobs \* 10)
# parallelization
numjobs=25 # number of parallel jobs
chunknum=$(expr $numjobs \* 10) # assuming 10 times more files may give a better balance
# check for given date as $1
if [[ $1 ]]
then
today=$1
today=$1 # for testing take a different daten than today
else
today=$(date "+%F")
today=$(date "+%F") # today's the default
fi
# create $today's folder and switch to it
if [[ ! -d /tsm/ocnode/$today ]]
if [[ ! -d $wpath/$today ]]
then
mkdir /tsm/ocnode/$today
mkdir $wpath/$today
fi
cd /tsm/ocnode/$today
cd $wpath/$today
##
## check for snapshot and filelist
......@@ -82,13 +83,11 @@ echo Total number of objects updated . : $(awk -F ':' '{sum+=$2} END {print sum}
echo Total number of objects failed .. : $(awk -F ':' '{sum+=$2} END {print sum}' < out.tf) >> ../$today.daily.stats
echo ANS4005 errors .................. : $(wc -l out.4005E | cut -f1 -d' ') >> ../$today.daily.stats
echo severe errors ................... : $(wc -l out.ts) | cut -f1 -d' ' >> ../$today.daily.stats
l
##
## clean up
##
rm -f chunk.*
rm -rf out/
rm -f errlog*
rm -f out.t* out.4005E
cd $wpath
rm -rf $wpath/$today
exit 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