#!/bin/bash # Cause rdiff-backup to throw a KeyError set -e # Create a directory to back up, containing # Globals.pipeline_max_length*4-1 (1999) files. This is the exactly # cut off, if you make it 1998, everything works. mkdir /tmp/lotsoffiles for (( N=0 ; N < 500*4-1 ; N++ )); do touch /tmp/lotsoffiles/`printf '%04d\n' $N` done # Back up /tmp/lotsoffiles to /tmp/lotsoffiles-backup, using remote # access for both. rdiff-backup \ --terminal-verbosity 5 \ --include /tmp/lotsoffiles \ --exclude / \ localhost::/ localhost::/tmp/lotsoffiles-backup