Updated rsync script
This commit is contained in:
parent
195ed41725
commit
3dbb3b9418
1 changed files with 15 additions and 15 deletions
30
Bin/rsync.sh
30
Bin/rsync.sh
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
TYPE='' # usb / sshfs
|
TYPE='' # usb / sshfs
|
||||||
CMD=rsync
|
CMD=rsync
|
||||||
ARGS='-avz --delete
|
ARGS='-avz --delete
|
||||||
--exclude /Nextcloud
|
--exclude /Nextcloud
|
||||||
--exclude /.cache
|
--exclude /.cache
|
||||||
--exclude /Downloads
|
--exclude /Downloads
|
||||||
--exclude /.thunderbird
|
--exclude /.thunderbird
|
||||||
--exclude /Projects
|
--exclude /Projects
|
||||||
--exclude /Software
|
--exclude /Software
|
||||||
--exclude /tmp
|
--exclude /tmp
|
||||||
--exclude /fonts
|
--exclude /fonts
|
||||||
--exclude /Music
|
--exclude /Music
|
||||||
--exclude /node_modules
|
--exclude /node_modules
|
||||||
--exclude /snap
|
--exclude /snap
|
||||||
--exclude /.local/share/Trash
|
--exclude /.local/share/Trash
|
||||||
--exclude /.npm
|
--exclude /.npm
|
||||||
--exclude /.thumbnails
|
--exclude /.thumbnails
|
||||||
--exclude /Android
|
--exclude /Android
|
||||||
--exclude /.AndroidStudio*
|
--exclude /.AndroidStudio*
|
||||||
--exclude /.android
|
--exclude /.android
|
||||||
--exclude /.bundle/cache
|
--exclude /.bundle/cache
|
||||||
|
@ -46,7 +46,7 @@ DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
|
||||||
# SSHFS
|
# SSHFS
|
||||||
DEST_SSHFS="malpartida.mousur.org:Backup/${HOSTNAME}/dbroqua/"
|
DEST_SSHFS="malpartida.mousur.org:Backup/${HOSTNAME}/dbroqua/"
|
||||||
|
|
||||||
echo `date` > ${ORIG}/lastSync
|
echo `date` > ${ORIG}/lastBackup
|
||||||
|
|
||||||
while getopts t:h opt
|
while getopts t:h opt
|
||||||
do
|
do
|
||||||
|
@ -69,7 +69,7 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo `date` > ${ORIG}/lastSync_${TYPE}
|
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
|
||||||
|
|
||||||
if [ "${TYPE}" != '' ] ; then
|
if [ "${TYPE}" != '' ] ; then
|
||||||
case ${TYPE} in
|
case ${TYPE} in
|
||||||
|
|
Loading…
Reference in a new issue