Skip to content

BackupPC - binary garbage in XferLog.z / XferLog.z getting huge

I run a BackupPC instance that is still on Debian 10 / buster. The latest rsync package for Debian 10 has version number 3.1.3-6.

I recently noticed infrequent issues when backing up hosts that are either on Debian 11 / bullseye, or on Ubuntu 22.04 (which both ship rsync 3.2.3). The symptoms are as follows:

- backups take much longer than usual
- XferLog.z starts "normally", but after a certain point contains a lot of binary garbage, and gets much bigger than usual (hundreds of MB, or even in one case up to 12 GB)

After investigating and looking for information online, I came across these bug reports, which contain the explanation as well as a workaround: Debian Bug report #969463 and BackupPC issue #369.

=> The issue is caused by a combination of a change of default behaviour introduced with rsync 3.2.3, and a bug in File::RsyncP.

The solution that works for me (pending an update to Debian 11 and BackupPC 4) is to add the following line in the individual server config for each of the affected hosts:
$Conf{RsyncArgsExtra} = ['--no-msgs2stderr'];


  • Twitter
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg BackupPC - binary garbage in XferLog.z / XferLog.z getting huge
  • Mixx BackupPC - binary garbage in XferLog.z / XferLog.z getting huge
  • Bloglines BackupPC - binary garbage in XferLog.z / XferLog.z getting huge
  • Technorati BackupPC - binary garbage in XferLog.z / XferLog.z getting huge
  • Fark this: BackupPC - binary garbage in XferLog.z / XferLog.z getting huge
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at YahooMyWeb
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at Furl.net
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at reddit.com
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at blinklist.com
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at Spurl.net
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at NewsVine
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at Simpy.com
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge at blogmarks
  • Bookmark BackupPC - binary garbage in XferLog.z / XferLog.z getting huge with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Find large files in a BackupPC transfer log (sort files in XferLOG by size)

When your backups suddenly takes much longer to complete, it could be because large files that were previously excluded from the backup were renamed or relocated elsewhere. In order to identify those files, or just to sort the list of files by size, I use the following code (bash):
cd /tmp/
BackupPC_zcat /var/lib/backuppc/pc/mypc/XferLOG.99.z > xlog
for S in `cat xlog | sed -e 's/^[^/]*\/[0-9]*[ ]*//' | cut -f1 -d\ | egrep '^[0-9]+$' | egrep '[0-9]{9,}' | sort -n | uniq ` ; do fgrep " $S " xlog ; done
This will show the list of files bigger than 99999999 bytes (100 MB). Remove "| egrep '[0-9]{9,}'" to just list all instead.

Note: on Debian, BackupPC_zcat is in /usr/share/backuppc/bin/. I've added a symlink in /usr/local/bin/ so that I don't need to look for it every time.


  • Twitter
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Find large files in a BackupPC transfer log (sort files in XferLOG by size)
  • Mixx Find large files in a BackupPC transfer log (sort files in XferLOG by size)
  • Bloglines Find large files in a BackupPC transfer log (sort files in XferLOG by size)
  • Technorati Find large files in a BackupPC transfer log (sort files in XferLOG by size)
  • Fark this: Find large files in a BackupPC transfer log (sort files in XferLOG by size)
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at YahooMyWeb
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at Furl.net
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at reddit.com
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at blinklist.com
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at Spurl.net
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at NewsVine
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at Simpy.com
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) at blogmarks
  • Bookmark Find large files in a BackupPC transfer log (sort files in XferLOG by size) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

backuppc "no ping response" when ping works fine

It took me some time to figure this out, maybe it can be useful to someone else...

I kept getting "no ping" error for unknown reasons. It turned out that I had enabled DumpPreUserCmd and UserCmdCheckStatus for that specific host to check for an encrypted partition being mounted.

Due to some changes on the host after an upgrade, the script triggered by DumpPreUserCmd was returning an error... And for some reason this showed as a ping error in the web interface.

I eventually figured it out by checking the last lines of the LOG.** file in the pc/[host] directory, which looked like this:
2018-05-08 19:15:45 Output from DumpPreUserCmd: /[partition] is not mounted
2018-05-08 19:15:45 DumpPreUserCmd returned error status 256... exiting

  • Twitter
  • Bookmark backuppc "no ping response" when ping works fine at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg backuppc "no ping response" when ping works fine
  • Mixx backuppc "no ping response" when ping works fine
  • Bloglines backuppc "no ping response" when ping works fine
  • Technorati backuppc "no ping response" when ping works fine
  • Fark this: backuppc "no ping response" when ping works fine
  • Bookmark backuppc "no ping response" when ping works fine at YahooMyWeb
  • Bookmark backuppc "no ping response" when ping works fine at Furl.net
  • Bookmark backuppc "no ping response" when ping works fine at reddit.com
  • Bookmark backuppc "no ping response" when ping works fine at blinklist.com
  • Bookmark backuppc "no ping response" when ping works fine at Spurl.net
  • Bookmark backuppc "no ping response" when ping works fine at NewsVine
  • Bookmark backuppc "no ping response" when ping works fine at Simpy.com
  • Bookmark backuppc "no ping response" when ping works fine at blogmarks
  • Bookmark backuppc "no ping response" when ping works fine with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

BackupPC rsync error message "Internal hashtable error: illegal key supplied!"

While trying to restore two files with BackupPC I got the following error message:
Remote[1]: Internal hashtable error: illegal key supplied!
Remote[1]: rsync error: errors with program diagnostics (code 13) at hashtable.c(65) [Receiver=3.0.9]
Read EOF:
Tried again: got 0 bytes
Done: 2 files, 760646 bytes
restore failed: Unable to read 4 bytes
Other restores worked flawlessly. All hosts involved were running the same version of Debian Linux, with the same version of rsync. The same two files could be restored as a zip file from the BackupPC web front-end.

After spending some time on the issue with a colleague we eventually found the explanation, albeit not the solution: one of the files was a hard link. It looks like we hit a bug similar to what is described here: http://sourceforge.net/p/backuppc/mailman/message/20762995/
> This results in one subtle bug that can't be easily fixed: if you
> switch the Xfer method from tar to rsync, old backups that have
> hardlinks stored with tar won't be correctly restored with rsync.
> The workaround is generate a tar file and extract it, or switch
> the Xfer method back to tar before you do the restore.
We did not switch Xfer method (we've always used rsync over ssh). Possibly the issue was caused by attempting to restore two hard links to the same file at once - more testing would be required to confirm this.

  • Twitter
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg BackupPC rsync error message "Internal hashtable error: illegal key supplied!"
  • Mixx BackupPC rsync error message "Internal hashtable error: illegal key supplied!"
  • Bloglines BackupPC rsync error message "Internal hashtable error: illegal key supplied!"
  • Technorati BackupPC rsync error message "Internal hashtable error: illegal key supplied!"
  • Fark this: BackupPC rsync error message "Internal hashtable error: illegal key supplied!"
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at YahooMyWeb
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at Furl.net
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at reddit.com
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at blinklist.com
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at Spurl.net
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at NewsVine
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at Simpy.com
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" at blogmarks
  • Bookmark BackupPC rsync error message "Internal hashtable error: illegal key supplied!" with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca