dotfiles

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

borg-stat (448B)


      1 #!/bin/sh
      2 
      3 LENGTH=$((128 < $(tput cols) ? 128 : $(tput cols)))
      4 LINE="$(printf "%0$(echo $LENGTH)d\n" 0|tr '0' '=')"
      5 
      6 echo
      7 echo file system disk space usage
      8 echo $LINE
      9 ssh backup -t df 2>/dev/null
     10 echo
     11 
     12 set -- $(ls ~/.local/share/pass/backup/borg/nas); for repo
     13 do
     14 	export BORG_REPO="backup:$repo"
     15 	export BORG_PASSCOMMAND="pass backup/borg/nas/$repo/passphrase"
     16 	echo "status: $repo"
     17 	echo $LINE
     18 	/bin/borg info
     19 	/bin/borg list --last 6
     20 	echo
     21 done