Added PleromaStats.sh Script

This commit is contained in:
Koneko Toujou 2021-07-13 20:32:04 +01:00
commit 71e9e44c87
No known key found for this signature in database
GPG Key ID: 61B8CE6DA2F634DA
1 changed files with 9 additions and 0 deletions

9
PleromaStats.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
databaseLocation="/mnt/sdb/docker-postgres/"
uploadLocation="/mnt/sdb/pleroma-uploads/"
emojiLocation="/opt/pleroma/instance/static/emoji/"
echo "Database Size:" "$(du -h -d 0 $databaseLocation | awk '{print $1}')"
echo " Uploads Size:" "$(du -h -d 0 $uploadLocation | awk '{print $1}')" "($(find $uploadLocation -type f | wc -l) files)"
echo " Emoji Size:" "$(du -h -d 0 $emojiLocation | awk '{print $1}')" "($(find $emojiLocation -type f | wc -l) files)"