feat: get storage with single unix user

This commit is contained in:
bsourisse 2023-08-20 20:54:27 +02:00 committed by Ravinou
parent 04038b5b0d
commit 695e360d07
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -14,6 +14,14 @@
# Exit when any command fails
set -e
# Load .env if exists
if [[ -f .env ]]; then
source .env
fi
# Default value if .env not exists
: "${home:=/home/borgwarehouse}"
# Use jc to output a JSON format with du command
cd /var/borgwarehouse
sudo /usr/bin/du -s -- * | jc --du
cd ${home}/repos
du -s -- * | jc --du