Commit 9876a370 authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

removed scripts backup-daily*.sh

parent 7839bc2c
#! /bin/bash
today=$(date "+%F")
umount /mnt/oc_stor_userdata
mount svm-gwdg.top.gwdg.de:/vol_GWDG_owncloud_ng /mnt/oc_stor_userdata
if [[ ! -d $today ]]
then
mkdir $today
fi
time $(bash OC-daily-selective-backup.sh >> $today/out.log) | tee $today/times.log
# get total
echo Total number of objects inspected: $(grep "Total number of objects inspected" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects backed up: $(grep "Total number of objects backed up" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects updated : $(grep "Total number of objects updated" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects failed : $(grep "Total number of objects failed" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo ANS4005 errors : $(grep ANS4005E $today/out.log | wc -l)
umount /mnt/oc_stor_userdata
#! /bin/bash
today=$(date "+%F" -d yesterday)
umount /mnt/oc_stor_userdata
mount svm-gwdg.top.gwdg.de:/vol_GWDG_owncloud_ng /mnt/oc_stor_userdata
if [[ ! -d $today ]]
then
mkdir $today
fi
time $(bash OC-daily-selective-backup.sh >> $today/out.log) | tee $today/times.log
# get total
echo Total number of objects inspected: $(grep "Total number of objects inspected" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects backed up: $(grep "Total number of objects backed up" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects updated : $(grep "Total number of objects updated" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo Total number of objects failed : $(grep "Total number of objects failed" $today/out.log | sed -e 's/,//g' | awk -F ':' '{sum+=$2} END {print sum}')
echo ANS4005 errors : $(grep ANS4005E $today/out.log | wc -l)
umount /mnt/oc_stor_userdata
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