title: RSnapshot reports errors using rsnapreport.pl: "NO STATS DATA"
body: <p>I configured RSnapshot on a WD My Book Live (2TB) and its working (at least that's what the logs say). I used the reporting tool rsnapreport.pl from /usr/share/doc/rsnapshot/examples/utils/rsnapreport.pl.gz to get human readable mail reports about the crontab triggered backup jobs.</p>
  
  <p>While the backup jobs seem to work, the reports are a obviously missing information as you can see in this snipplet:</p>
  
  <pre><code>SOURCE                          TOTAL FILES   FILES TRANS      TOTAL MB     MB TRANS   LIST GEN TIME  FILE XFER TIME
  --------------------------------------------------------------------------------------------------------------------
  rsync://server:/vmail                 13950           137       3687.81        20.31   0.052 seconds   0.000 seconds
  
  ERRORS
  /shares/rsnapshot/daily.0/ NO STATS DATA
  </code></pre>
  
  <p><strong>The Question now is:</strong></p>
  
  <p>Beside the error at the bottom, which is my first and major problem and question, the FILE XFER TIME is also 0 for all backup jobs (I guess that the issues correlate). </p>
  
  <p>I followed all instructions (see below) - what am I missing?</p>
  
  <p><strong>So what did I do so far:</strong></p>
  
  <p>*) The NAS runs Debian Squeeze (incl. squeeze-backports), Kernel Version is 2.6.32, PPC Architecture.</p>
  
  <p>*) rsync version 3.0.3-2 (preinstalled), with /etc/rsyncd.conf:</p>
  
  <pre><code>pid file=/var/run/rsyncd.pid
  lock file=/var/run/rsync.lock
  log file=/var/log/rsync.log
  
  [rsync]
  path=/shares/rsync
  uid=root
  gid=share
  read only=no
  list=yes
  auth users=root
  </code></pre>
  
  <p>*) Installed rsnapshot 1.3.1-1 with /etc/rsnapshot.conf:</p>
  
  <pre><code>config_version  1.2
  snapshot_root   /shares/rsnapshot/
  cmd_rm          /bin/rm
  cmd_rsync       /usr/bin/rsync
  cmd_logger      /usr/bin/logger
  interval        daily   7
  interval        weekly  4
  interval        monthly 3
  verbose         3
  loglevel        3
  logfile         /var/log/rsnapshot.log
  lockfile        /var/run/rsnapshot.pid
  rsync_long_args --delete --numeric-ids --relative --delete-excluded --stats
  backup  rsync://server:/vmail/     backupOfServer/vmail/
  backup  ...
  backup  ...
  backup  ...
  </code></pre>
  
  <p>*) unpacked the report script and followed instructions in the script (most of which you can see in the config above):</p>
  
  <pre><code># this script prints a pretty report from rsnapshot output
  # in the rsnapshot.conf you must set
  # verbose &gt;= 3
  # and add --stats to rsync_long_args
  # then setup crontab 'rsnapshot daily 2&gt;&amp;1 | rsnapreport.pl | mail -s"SUBJECT" backupadm@adm.com
  # don't forget the 2&gt;&amp;1 or your errors will be lost to stderr
  </code></pre>
  
  <p>*) and set up cron.d/rsnapshot:</p>
  
  <pre><code>MAILTO="user1@foo,user2@foo"
  
  30 3    * * *           root    /usr/bin/rsnapshot daily 2&gt;&amp;1 | /root/rsnapreport.pl
  0  3    * * 1           root    /usr/bin/rsnapshot weekly 2&gt;&amp;1 | /root/rsnapreport.pl
  30 2    1 * *           root    /usr/bin/rsnapshot monthly 2&gt;&amp;1 | /root/rsnapreport.pl
  </code></pre>
  
  <p>If you need any detailed or additional information, don't hesitate. We are happy to have daily reports of the backup at all, just the errors at the bottom are making us nervous.</p>
  
  <p>Best Regards and thanks in advance,</p>
  
  <p>Peter</p>