size of backup printed
authorColas Nahaboo <colas@nahaboo.net>
Fri, 02 Jun 2017 06:23:30 +0200
changeset 193519a69bec56
parent 18 17013dda6719
child 20 31f4cf98b45a
size of backup printed
rsync-incr
     1.1 --- a/rsync-incr	Fri May 26 13:45:59 2017 +0200
     1.2 +++ b/rsync-incr	Fri Jun 02 06:23:30 2017 +0200
     1.3 @@ -150,6 +150,7 @@
     1.4  if test -e "$destold/$last_date"; then 
     1.5    let msize='(size+1023)/1024'
     1.6    mv "$destold/$last_date" "$destold/$last_date-${msize}m"
     1.7 +  echo "Size used by this backup: $size m"
     1.8  fi
     1.9  date +'%Y-%m-%d.%Hh%M' >"$destold/LAST_DATE"
    1.10  if test "$status" = 0 -o "$status" = 24; then