瀏覽代碼

New script: du-all

master
Alard 11 年之前
父節點
當前提交
8dc09b1e79
共有 2 個文件被更改,包括 18 次插入0 次删除
  1. +4
    -0
      README.md
  2. +14
    -0
      du-all

+ 4
- 0
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
---------------------


+ 14
- 0
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)


Loading…
取消
儲存