diff --git a/utils/compact-storage.sh b/utils/compact-storage.sh new file mode 100755 index 0000000..b62c371 --- /dev/null +++ b/utils/compact-storage.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +exec &> >(tee -a /tmp/compact.log) + +print_size() { + df -h /var/repo + #du -hs /var/repo/files +} + +compact() { + cd /srv/phabricator + time ./bin/files compact --all \ + | grep -v 'No other files with the same content hash' +} + +print_size +compact +print_size +