Skip to content

Instantly share code, notes, and snippets.

@jhrcz
Created November 18, 2014 11:06
Show Gist options
  • Save jhrcz/bf63826060de97cc156a to your computer and use it in GitHub Desktop.
Save jhrcz/bf63826060de97cc156a to your computer and use it in GitHub Desktop.
calculate listed files size with rsync
find /var/lib/jenkins/.m2/repository -type f -mtime +30 -print0 | rsync -n --stats -h --files-from=- --from0 / /tmp/none | grep "Total file size:"
Total file size: 11.26G bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment