Would you actually do that? It's information destruction. You can machine generate at any time, but you can only delete the human input once
git branch "backup/$(git branch --show-current)/$(date +%s)"
# do whatever you fancy
git reset --hard "backup/$(git branch --show-current)/${thattimestampabove}"
You can't lose anything as long as you have a pointer to it (which doubles as making it easy to find)the only thing that does keep a git object is having a ref that (directly or transitively) points to it