From c6e5769c5ff63dad90a87126b5bd47ca78cf263b Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Sun, 8 Oct 2017 18:44:53 -0300 Subject: [PATCH] Bugfix #51 - Zmbackup computing wrong size in SQLITE3 --- project/lib/bash/BackupAction.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/lib/bash/BackupAction.sh b/project/lib/bash/BackupAction.sh index b027276..56e20b3 100644 --- a/project/lib/bash/BackupAction.sh +++ b/project/lib/bash/BackupAction.sh @@ -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 \