Added some excluded folders
This commit is contained in:
parent
8c8932e775
commit
b2e420d5a0
1 changed files with 7 additions and 8 deletions
15
bin/rsync.sh
15
bin/rsync.sh
|
@ -35,7 +35,8 @@ ARGS='-avz --delete
|
||||||
--exclude /.gradle
|
--exclude /.gradle
|
||||||
--exclude ./Software
|
--exclude ./Software
|
||||||
--exclude /.local
|
--exclude /.local
|
||||||
--exclude /.DataGrip*'
|
--exclude /.DataGrip*
|
||||||
|
--exclude /OneDrive'
|
||||||
ORIG='/home/dbroqua/'
|
ORIG='/home/dbroqua/'
|
||||||
DEST=''
|
DEST=''
|
||||||
HOSTNAME=`hostname`
|
HOSTNAME=`hostname`
|
||||||
|
@ -46,7 +47,7 @@ UUID='6e3f7ae3-8fa1-43f3-88c0-a12651519ffb'
|
||||||
MOUNT='/mnt/backup'
|
MOUNT='/mnt/backup'
|
||||||
DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
|
DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
|
||||||
# SSHFS
|
# SSHFS
|
||||||
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
|
DEST_SSHFS="dmc-12:Backup/${HOSTNAME}/dbroqua/"
|
||||||
|
|
||||||
|
|
||||||
while getopts t:h opt
|
while getopts t:h opt
|
||||||
|
@ -89,14 +90,12 @@ if [ "${TYPE}" != '' ] ; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $?
|
|
||||||
|
|
||||||
if [ $? == 0 ] ; then
|
if [ $? == 0 ] ; then
|
||||||
echo `date` > ${ORIG}/lastBackup
|
echo `date` > ${ORIG}lastBackup
|
||||||
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
|
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
|
||||||
rm ${ORIG}/lastFailBackup
|
rm ${ORIG}lastFailBackup
|
||||||
else
|
else
|
||||||
echo `date` > ${ORIG}/lastFailBackup
|
echo `date` > ${ORIG}lastFailBackup
|
||||||
echo "Method: ${TYPE}" >> ${ORIG}/lastFailBackup
|
echo "Method: ${TYPE}" >> ${ORIG}lastFailBackup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue