diff --git a/plugins/localdump/couchdb2.sh b/plugins/localdump/couchdb2.sh
index eee53dc1200bf02ccf00b3e376fa940ecc4507a2..8ed3092003e2f816878b9c1499806e122bd631fe 100755
--- a/plugins/localdump/couchdb2.sh
+++ b/plugins/localdump/couchdb2.sh
@@ -173,7 +173,7 @@ function _doBackupOfSingleInstance(){
   # done | tee /tmp/couch_archive_${COUCHDB_INSTANCE}.txt
   echo
 
-  typeset -i iDbTotal=$( wc -l $dblist )
+  typeset -i iDbTotal=$( cat $dblist | wc -l )
   typeset -i iDb=0
 
   echo