Updated rsync script

This commit is contained in:
dbroqua 2020-06-03 14:20:45 +02:00
parent 195ed41725
commit 3dbb3b9418

View file

@ -2,22 +2,22 @@
TYPE='' # usb / sshfs
CMD=rsync
ARGS='-avz --delete
--exclude /Nextcloud
--exclude /.cache
ARGS='-avz --delete
--exclude /Nextcloud
--exclude /.cache
--exclude /Downloads
--exclude /.thunderbird
--exclude /Projects
--exclude /Software
--exclude /.thunderbird
--exclude /Projects
--exclude /Software
--exclude /tmp
--exclude /fonts
--exclude /Music
--exclude /node_modules
--exclude /fonts
--exclude /Music
--exclude /node_modules
--exclude /snap
--exclude /.local/share/Trash
--exclude /.npm
--exclude /.thumbnails
--exclude /Android
--exclude /.local/share/Trash
--exclude /.npm
--exclude /.thumbnails
--exclude /Android
--exclude /.AndroidStudio*
--exclude /.android
--exclude /.bundle/cache
@ -46,7 +46,7 @@ DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
# SSHFS
DEST_SSHFS="malpartida.mousur.org:Backup/${HOSTNAME}/dbroqua/"
echo `date` > ${ORIG}/lastSync
echo `date` > ${ORIG}/lastBackup
while getopts t:h opt
do
@ -69,7 +69,7 @@ do
esac
done
echo `date` > ${ORIG}/lastSync_${TYPE}
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
if [ "${TYPE}" != '' ] ; then
case ${TYPE} in