1 2 3 4 5
#!/bin/bash cd $(dirname $0) source ./env restic forget --prune --tag "$(basename $1)" --keep-last 2 --group-by tags