Added some excluded folders

This commit is contained in:
Damien Broqua 2022-01-25 13:24:57 +01:00
parent 8c8932e775
commit b2e420d5a0

View file

@ -35,7 +35,8 @@ ARGS='-avz --delete
--exclude /.gradle
--exclude ./Software
--exclude /.local
--exclude /.DataGrip*'
--exclude /.DataGrip*
--exclude /OneDrive'
ORIG='/home/dbroqua/'
DEST=''
HOSTNAME=`hostname`
@ -46,7 +47,7 @@ UUID='6e3f7ae3-8fa1-43f3-88c0-a12651519ffb'
MOUNT='/mnt/backup'
DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
# SSHFS
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
DEST_SSHFS="dmc-12:Backup/${HOSTNAME}/dbroqua/"
while getopts t:h opt
@ -89,14 +90,12 @@ if [ "${TYPE}" != '' ] ; then
esac
fi
echo $?
if [ $? == 0 ] ; then
echo `date` > ${ORIG}/lastBackup
echo `date` > ${ORIG}lastBackup
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
rm ${ORIG}/lastFailBackup
rm ${ORIG}lastFailBackup
else
echo `date` > ${ORIG}/lastFailBackup
echo "Method: ${TYPE}" >> ${ORIG}/lastFailBackup
echo `date` > ${ORIG}lastFailBackup
echo "Method: ${TYPE}" >> ${ORIG}lastFailBackup
fi