sauvegardes/Plan Borg/bin/doprunes

14 lines
566 B
Plaintext
Raw Normal View History

2023-01-16 19:44:21 +01:00
#!/bin/bash
echo "================================================================================"
echo " Prunes du "$(date)
echo "================================================================================"
2023-01-20 00:45:52 +01:00
START_TIME=$(date +"%s")
2023-01-16 19:44:21 +01:00
borgmatic prune --stats --files --verbosity 1
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 "================================================================================"