Browse Source

New script: du-all

master
Alard 11 years ago
parent
commit
8dc09b1e79
2 changed files with 18 additions and 0 deletions
  1. +4
    -0
      README.md
  2. +14
    -0
      du-all

+ 4
- 0
README.md View File

@@ -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
---------------------


+ 14
- 0
du-all View File

@@ -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)


Loading…
Cancel
Save