summaryrefslogtreecommitdiffstats
path: root/rsync-size
blob: a592a1a0a3dac1d62877c83b176688ef400a660c (plain)
1
2
3
#!/bin/bash

units -t $(rsync --no-motd -r --list-only $1 | awk '{print $2}' | sed 's/,//g' | paste -sd+ |bc)bytes Gibytes