#!/bin/bash
borgRepos=$(find ~/path/to/backups/ -type d -name "*.borg")
for REPOSITORY in ${borgRepos}; do
borg prune -v $REPOSITORY --keep-daily=3 --keep-weekly=2 --keep-monthly=12
done
exit