|
#!/bin/bash
|
|
|
|
# Ment to be run on a remote backup server to run prune on all repos
|
|
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
|