Plan borg: improved script.

This commit is contained in:
Christian P. MOMON 2023-02-09 15:02:14 +01:00
parent eb49e25972
commit 0f02968365
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ for REPO in $( ls -d *.repo ); do
borg compact "$REPO"
done
df -h /var/backups/borg/.
echo "====="
DURATION=$(($(date +"%s")-$START_TIME))
DURATION=$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))