#!/bin/bash
#                       /usr/local/bin/dursexcluded
# https://crystalfaeries.net/posix/bin/dursexcluded
# celeste:crystalfaery DURSexcluded 2016-11-14 20:11:16+00:00
grep '^exclude' /etc/rsnapshot.conf | sed 's/^exclude	//'	| \
grep -v backup							| \
grep -v cache							| \
grep -v /cdrom/							| \
grep -v /dev/							| \
grep -v downloads						| \
grep -v error							| \
grep -v /etc/							| \
grep -v /home/dar/						| \
grep -v /var/cache/dar/						| \
grep -v /lib/init/rw/						| \
grep -v lock							| \
grep -v MailScanner						| \
grep -v /media/							| \
grep -v /mnt/							| \
grep -v /proc/							| \
grep -v /.pulse/						| \
grep -v /pub/							| \
grep -v run							| \
grep -v spool							| \
grep -v /srv/							| \
grep -v /sys/							| \
grep -v thumbnail						| \
grep -v tmp							| \
grep -v Trash							| \
grep -v X11							| \
xargs du -s 2>/dev/null | sort -rn


syntax highlighted by Code2HTML, v. 0.9.1