sauvegardes/bin/doprunesb

18 lines
646 B
Plaintext
Raw Normal View History

2023-01-16 19:44:21 +01:00
#!/bin/bash
echo "================================================================================"
echo " Prunes du "$(date)
echo "================================================================================"
REPO_DIR="/var/backups/borg"
2023-01-17 18:15:43 +01:00
cd $REPO_DIR
for REPO in $(ls -d *.repo); do
2023-01-16 19:44:21 +01:00
echo "$REPO"
2023-01-17 18:15:43 +01:00
borg prune --keep-within 3d --keep-daily 7 --keep-weekly 8 --keep-monthly 6 --info --list --stats /var/backups/borg/${REPO}
2023-01-16 19:44:21 +01:00
echo "================================================================================"
done
echo "Ended at: "`date`
echo "================================================================================"