This script makes a connection between the pglister and pgarchives code which I'm not sure we want to "codify" quite so clearly. I think it might for that reason be better suited for a wiki page or such?
It also makes a lot of assumptions about paths etc -- which would be OK for a sample on a wiki page, but if we *do* want to makt it into a "proper part of the codebase", it needs to be more generic.