I haven't done this for tags yet, but this is what it looks like if you don't restrict the rewriting hooks to just naming the backups. I provide a default implementation that does the right things, but it's easy to override for just naming, or you can do all your own logic in there.