sauvegardes/Plan Borg/bin/dochecks

16 lines
595 B
Bash
Executable File

#!/bin/bash
echo "================================================================================"
echo " Checks du "$(date)
echo "================================================================================"
START_TIME=$(date +"%s")
borgmatic check --verbosity 1
chown -R borg.borg /var/backups/borg/*.repo
echo "====="
DURATION=$(($(date +"%s")-$START_TIME))
echo "Ended at: "$(date)" Duration: "$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
echo "================================================================================"