sauvegardes/Plan Borg/bin/doprunes

14 lines
566 B
Bash
Executable File

#!/bin/bash
echo "================================================================================"
echo " Prunes du "$(date)
echo "================================================================================"
START_TIME=$(date +"%s")
borgmatic prune --stats --files --verbosity 1
echo "====="
DURATION=$(($(date +"%s")-$START_TIME))
echo "Ended at: "$(date)" Duration: "$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
echo "================================================================================"