#!/bin/bash
set -e

export BORG_REPO="ssh://e7e9h45y@e7e9h45y.repo.borgbase.com/./repo"
export BORG_RSH="ssh -i ~/.ssh/borg-backup"

echo "Applying retention policy..."

borg prune \
    --keep-daily=7 \
    --keep-weekly=8 \
    --keep-monthly=12 \
    --stats

echo "Done: pruning complete"
