From 77f8f598de6259d2eb887e2c2ca38a6e16a2cc01 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 29 Mar 2018 15:08:23 -0400 Subject: [PATCH] Add `disk-usage.sh` script for testing --- .../disk-usage.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh diff --git a/scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh b/scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh new file mode 100755 index 00000000000..ffde28a246b --- /dev/null +++ b/scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh @@ -0,0 +1,18 @@ +#!/bin/bash +ROOT=$1 + +if [[ "$1" == "" ]]; then + echo "Usage: $(basename "$0") " + exit 1 +fi + +while true +do + echo -n "$(date -u +"%Y-%m-%dT%H:%M:%SZ ")" + du -sm "$ROOT/attachments.noindex" + + echo -n "$(date -u +"%Y-%m-%dT%H:%M:%SZ ")" + du -sm "$ROOT/IndexedDB" + + sleep 1 +done