Updated rsync.sh results
This commit is contained in:
parent
a470fa5b01
commit
d6b40f5ea3
1 changed files with 76 additions and 67 deletions
13
bin/rsync.sh
13
bin/rsync.sh
|
@ -48,7 +48,6 @@ DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
|
||||||
# SSHFS
|
# SSHFS
|
||||||
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
|
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
|
||||||
|
|
||||||
echo `date` > ${ORIG}/lastBackup
|
|
||||||
|
|
||||||
while getopts t:h opt
|
while getopts t:h opt
|
||||||
do
|
do
|
||||||
|
@ -71,7 +70,6 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
|
|
||||||
|
|
||||||
if [ "${TYPE}" != '' ] ; then
|
if [ "${TYPE}" != '' ] ; then
|
||||||
case ${TYPE} in
|
case ${TYPE} in
|
||||||
|
@ -91,3 +89,14 @@ if [ "${TYPE}" != '' ] ; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo $?
|
||||||
|
|
||||||
|
if [ $? == 0 ] ; then
|
||||||
|
echo `date` > ${ORIG}/lastBackup
|
||||||
|
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
|
||||||
|
rm ${ORIG}/lastFailBackup
|
||||||
|
else
|
||||||
|
echo `date` > ${ORIG}/lastFailBackup
|
||||||
|
echo "Method: ${TYPE}" >> ${ORIG}/lastFailBackup
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue