Migrating existing persistence data to JDBC-postgreSQL

Has anyone tried to migrate existing RRD4J persistence data to postgreSQL ?

I have seen something about a script which can migrate to influxDB - but I would rather avoid a detour around influxDB…

I am running latest stable OH5.x.