Pruning: Way to keep the last N snapshots, regardless of backup frequency

Rather than prune to keep a snapshot for a specific time frame I’d like some way to have it keep the last 3 snapshots (and delete the rest).

That way if a VM is shut down and not backed up I’ll still have the last 3 snapshots in the repository rather than having them age out.

I noticed this issue thread and was wondering if anything came of it (we’re using the linux version to prune due to vertical backup memory limitations).

At this time there isn’t an easy way to specify the number of snapshots to keep regardless of their times. What you can do is to write a script to parse the output of the list command and find out the revisions to deleted and then pass them to the prune command.