Assuming you have your Duplicacy storage set up, you know the revision you want to restore from, and the path to restore, here's how you can get the size of the directory you want to restore:
duplicacy list -r <revision number> -files | egrep '\s<directory>' | egrep -o '^\s?[0-9]*\s' | awk '{ sum += $1 } END { print sum}'
For example, you might use the following to get the size of the plexShare folder. The output should be the size as provided by Duplicacy for each matching file (all files whose paths contain the directory you grepped for with the first egrep) summed up:
root@storageMachine:/storage# /opt/duplicacy/duplicacy_linux_x64_2.7.2 list -r 1694 -files | egrep '\splexShare' | egrep -o "^\s?[0-9]*\s" | awk '{ sum += $1 } END { print sum}'
4276075032959
For reference and in case anyone wants to improve on this technique, Duplicacy outputs the file list in this format:
size date time sha256 path
For example:
206059 2019-07-14 10:13:36 ad207d3e1165a9adc271c7d4bf34c000c98c49eb637a8d2d338b35e01c7fecf2 plexShare/Music/coolArtist/Singles/sweetAlbum/cover.jpg