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 ./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
|
||||
|
||||
|
|
Loading…
Reference in a new issue