Added PleromaStats.sh Script

master
Koneko Toujou 2 years ago
commit 71e9e44c87
No known key found for this signature in database
GPG Key ID: 61B8CE6DA2F634DA
  1. 9
      PleromaStats.sh

@ -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)"
Loading…
Cancel
Save