summaryrefslogtreecommitdiffstats
path: root/rsync-size
diff options
context:
space:
mode:
Diffstat (limited to 'rsync-size')
-rwxr-xr-xrsync-size3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsync-size b/rsync-size
new file mode 100755
index 0000000..a592a1a
--- /dev/null
+++ b/rsync-size
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+units -t $(rsync --no-motd -r --list-only $1 | awk '{print $2}' | sed 's/,//g' | paste -sd+ |bc)bytes Gibytes