Fixed backup pruning to work with new backup strategy