Thanks @edso! I couldn't test the whole file (since my system version is on 2.4.1 with duplicity at 0.8.22), but applied the changes manually. Elegant solution - works fine!
Just noticed I didn't use the correct formatting for multiline code - here's the patch again: case "$cmd" in '') # ignore empty parameter ;;
Failure when parsing groupIn following and/or