Just some random scripts I wrote for random things... expect janky code and a lack of comments!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
471 B

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