If you're on Linux, you can do it by:
1) get a disk volume (partition, attach one, etc.)
2) zpool that disk (note it will wipe it out)
3) move your database data directory to the volume
4) use zfs snapshot and zfs clone to create an isolated branch
5) run pg_ctl start pointing to the clone directory.
That's it!
I tried to achieve the same on MacOS but it lacks proper tooling. Not sure about Windows.