sauvegardes/Plan Borg/bin/doprunesb

18 lines
646 B
Bash
Executable File

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