summaryrefslogtreecommitdiffstats
path: root/rsync-size
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-09-13 00:07:55 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-09-13 00:07:55 +0200
commit8450e9ac59dfb678ae3fc2adca5bb837804710f3 (patch)
tree655b5c145aeb9f30e7e8ea8b019b38474176c994 /rsync-size
parente59d9c40e64cb5e6fb4fcfd6401583c03bbd99be (diff)
downloadbin-8450e9ac59dfb678ae3fc2adca5bb837804710f3.tar.gz
bin-8450e9ac59dfb678ae3fc2adca5bb837804710f3.tar.xz
add some new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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