From 8dc09b1e79a7892859e323d65d7b5f16cc4bc5cc Mon Sep 17 00:00:00 2001 From: Alard Date: Thu, 16 May 2013 21:59:39 +0200 Subject: [PATCH] New script: du-all --- README.md | 4 ++++ du-all | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 du-all diff --git a/README.md b/README.md index 64208ad..80a7ee6 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,10 @@ Run the scripts in `screen`, `tmux` or something similar. `touch RUN` before you * `./pack-multiple` (you may run more than one) * `./upload-multiple` (you may run more than one) +Utility scripts: + +* `./du-all` will run `du -hs` in all queues + Scheduling priorities --------------------- diff --git a/du-all b/du-all new file mode 100755 index 0000000..37bc64c --- /dev/null +++ b/du-all @@ -0,0 +1,14 @@ +#!/bin/bash +# This shows du -hs for the important directories. +source ./config.sh || exit 1 + +du -hs \ + $INCOMING_UPLOADS_DIR \ + $CHUNKER_WORKING_DIR \ + $PACKING_QUEUE_DIR/* \ + $PACKER_WORKING_CHUNKS_DIR/* \ + $PACKER_WORKING_MEGAWARC_DIR/* \ + $UPLOAD_QUEUE_DIR/* \ + $UPLOADER_WORKING_DIR/* \ +2> >(grep -v 'du: cannot \(access\|read\)' >&2) +