signal-desktop/scripts/features/2193-migrate-attachments-on-startup/disk-usage.sh
2018-04-02 12:17:36 -04:00

18 lines
322 B
Bash
Executable file

#!/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