diff --git a/plugins/localdump/couchdb2.sh b/plugins/localdump/couchdb2.sh
index c03b7f3ea9510b6d39d3c67e30af8abe138102b8..2e13c0410ee9ea374f44c848434e014c7c886f86 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