Skip to content

Commit

Permalink
Bugfix #51 - Zmbackup computing wrong size in SQLITE3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascbeyeler committed Oct 8, 2017
1 parent 078671b commit c6e5769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/lib/bash/BackupAction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function backup_main()
cat $TEMPSESSION >> $WORKDIR/sessions.txt
elif [[ $SESSION_TYPE == "SQLITE3" ]]; then
DATE=$(date +%Y-%m-%dT%H:%M:%S.%N)
SIZE=$(du -sh $WORKDIR/$i | awk {'print $1'})
SIZE=$(du -sh $WORKDIR/$SESSION | awk {'print $1'})
sqlite3 $WORKDIR/sessions.sqlite3 < $TEMPSQL > /dev/null 2>&1
sqlite3 $WORKDIR/sessions.sqlite3 "update backup_session set conclusion_date='$DATE',\
size='$SIZE',status='FINISHED' where \
Expand Down

0 comments on commit c6e5769

Please sign in to comment.