sauvegardes/bin/dochecks

16 lines
595 B
Plaintext
Raw Normal View History

2023-01-16 19:44:21 +01:00
#!/bin/bash
echo "================================================================================"
echo " Checks du "$(date)
echo "================================================================================"
2023-01-20 00:45:52 +01:00
START_TIME=$(date +"%s")
2023-01-16 19:44:21 +01:00
borgmatic check --verbosity 1
2023-03-14 16:19:13 +01:00
chown -R borg.borg /var/backups/borg/*.repo
2023-01-16 19:44:21 +01:00
echo "====="
2023-01-20 00:45:52 +01:00
DURATION=$(($(date +"%s")-$START_TIME))
echo "Ended at: "$(date)" Duration: "$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
2023-01-16 19:44:21 +01:00
echo "================================================================================"