dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit bf421a39e65522005073e304a759089ae642edc9
parent 6abe49fe8f0929164c7817fc3e4713fba35f78f1
Author: Chris Noxz <chris@noxz.tech>
Date:   Fri, 16 Aug 2019 21:47:47 +0200

make borg-stat a little nicer

Diffstat:
Mbin/.bin/borg-stat | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/bin/.bin/borg-stat b/bin/.bin/borg-stat @@ -1,11 +1,22 @@ #!/bin/sh +LENGTH=$((128 < $(tput cols) ? 128 : $(tput cols))) +LINE="$(printf "%0$(echo $LENGTH)d\n" 0|tr '0' '=')" + +echo +echo file system disk space usage +echo $LINE +ssh backup -t df 2>/dev/null +echo + set -- $(ls ~/.password-store/backup/borg/nas); for repo do export BORG_REPO="backup:$repo" export BORG_PASSCOMMAND="pass backup/borg/nas/$repo/passphrase" echo "status: $repo" - /bin/borg list + echo $LINE + /bin/borg info + /bin/borg list --last 6 echo done