File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ do_sync () {
5252 [ -z " ${1} " ] && die 4 soemthing went wrong. call alex
5353 echo " backing up ${1} ..."
5454echo " "
55- sudo /usr/bin/rsync -hrav --no-perms --no-owner --no-group " ${1} " ${usb_disk}
55+ sudo /usr/bin/rsync -hrav --size-only -- no-perms --no-owner --no-group " ${1} " ${usb_disk}
5656 echo " "
5757}
5858# SCRIPT
Original file line number Diff line number Diff line change 3030date=$( date +%Y%m%d)
3131me=$( basename $0 )
3232mydir=$( dirname $0 )
33- rsyncopts=" -av --no-perms --no-owner --no-group --exclude=lost+found --exclude=.cache --exclude=.thumbnails --delete"
33+ rsyncopts=" -av --no-perms --no-owner --no-group --exclude=lost+found --exclude=.cache --exclude=.thumbnails --delete --size-only "
3434
3535# FUNCTIONS
3636die () {
You can’t perform that action at this time.
0 commit comments