Add disk-usage.sh
script for testing
This commit is contained in:
parent
0c40f35623
commit
77f8f598de
1 changed files with 18 additions and 0 deletions
18
scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh
Executable file
18
scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
ROOT=$1
|
||||||
|
|
||||||
|
if [[ "$1" == "" ]]; then
|
||||||
|
echo "Usage: $(basename "$0") <signal-profile-path>"
|
||||||
|
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
|
Loading…
Reference in a new issue